docker打包跨机器迁移镜像-实例Instance

[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.
[email protected]'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/
[email protected]'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
                            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                   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

 

你可能感兴趣的:(Docker)