【迁移】docker打包跨机器迁移镜像-实例Instance
2019年12月27日 11:01:15 作者:Jiaozn 分类:Docker 评论(0)[root@docker605 data]# docker save f8908be1963b > /data/nginx.img [root@docker605 data]# ls autodeployManagement java nginx system docker-compose.yml nextcloud nginx.img tomcat-8.5.32 [root@docker605 data]# scp nginx.img 10.6.7.13:/data/ The authenticity of host '10.6.7.13 (10.6.7.13)' can't be established. ECDSA key fingerprint is SHA256:KGMqrbYloMxSkdm7aYuotmXybfgYn7UI0O5Ii9CCs6c. ECDSA key fingerprint is MD5:b0:10:92:3c:0d:ea:9c:e7:79:02:51:fe:10:4e:ba:7c. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.6.7.13' (ECDSA) to the list of known hosts. root@10.6.7.13's password: nginx.img 100% 282MB 50.9MB/s 00:05 [root@docker605 data]# ls autodeployManagement java nginx system docker-compose.yml nextcloud nginx.img tomcat-8.5.32 [root@docker605 data]# scp nginx.img 10.6.7.14:/data/ root@10.6.7.14's password: nginx.img 100% 282MB 23.5MB/s 00:12 [root@docker605 data]# #****这里是Linux-node2********* [root@zabbix609 data]# docker load < nginx.img dd0338cdfab3: Loading layer 54.55 MB/54.55 MB 7e274c0effe8: Loading layer 3.584 kB/3.584 kB 5d528247a182: Loading layer 183 MB/183 MB Loaded image ID: sha256:f8908be1963b1171a03e91324fd6c2482b1ab15d60288d9aaefc29b2233944f1 [root@zabbix609 data]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE <none> <none> f8908be1963b 3 hours ago 283 MB docker.io/nginx latest bb776ce48575 31 hours ago 109 MB webreport latest aa0c1784b8d7 3 days ago 1.94 GB wordpress latest c96daeeff307 5 days ago 421 MB docker.io/tomcat 8.5 f1332ae3f570 13 days ago 463 MB mysql 5.7 98455b9624a9 2 weeks ago 372 MB docker.io/mysql <none> 98455b9624a9 2 weeks ago 372 MB docker.io/swarm latest ff454b4a0e84 10 months ago [root@zabbix609 data]# docker tag f8908be1963b nginx:latest [root@zabbix609 data]# docker images |grep nginx nginx latest f8908be1963b 3 hours ago 283 MB docker.io/nginx latest bb776ce48575 31 hours ago 109 MB ———————————————— 版权声明:本文为CSDN博主「漫步技术小栈」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/wintershang/article/details/89233253
除非注明,发表在“Jiaozn的博客”的文章『【迁移】docker打包跨机器迁移镜像-实例Instance』版权归Jiaozn所有。
转载请注明出处为“本文转载于『Jiaozn的博客』原地址https://jiaozn.com/reed/549.html”
评论
发表评论