![](https://i-blog.csdnimg.cn/blog_migrate/79c2eabea698a61324570a8ce73ad2c1.png)
docker迁移镜像
手动
将镜像保存为压缩包文件
[root@CentOS-7 ~]# docker images nginx
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/nginx latest 5766334bdaa0 2 weeks ago 182.5 MB
[root@CentOS-7 ~]#
[root@CentOS-7 ~]# docker save nginx | gzip > nginx-latest.tar.gz
[root@CentOS-7 ~]#
[root@CentOS-7 ~]# ls -lh nginx-latest.tar.gz
-rw-r--r-- 1 root root 69M Apr 24 17:28 nginx-latest.tar.gz
[root@CentOS-7 ~]#
加载镜像
# docker images nginx
REPOSITORY TAG IMAGE ID CREATED SIZE
#
# docker load -i nginx-latest.tar.gz
5d6cbe0dbcf9: Loading layer [==============