远程至机器,并确认机器不能上网 image.png 下载docker-engine的deb包 https://apt.dockerproject.org/repo/pool/main/d/docker-engine/ 将包上传至服务器 image.png 查看依赖 dpkg --info docker-engine_17.03.0_ce-0_ubuntu-xenial_amd64.deb | grep Depends 下载相关依赖,并上传至服务器,并安装,网址https://ubuntu.pkgs.org image.png dpkg -i libapparmor1_2.10.95-0ubuntu2.8_amd64.deb dpkg -i libltdl7_2.4.6-0.1_amd64.deb dpkg -i libseccomp2_2.2.3-3ubuntu3_amd64.deb dpkg -i lsb-base_9.20160110_all.deb dpkg -i docker-engine_17.03.0_ce-0_ubuntu-xenial_amd64.deb 查看docker是否安装成功,并添加开机启动 docker info /etc/init.d/rc.local 至此docker的离线安装便完成了