首页 > 其他 > 详细

Docker的镜像迁移

时间:2017-03-01 12:47:05      阅读:167      评论:0      收藏:0      [点我收藏+]

[root@localhost ~]# mkdir /opt/soft/

[root@localhost ~]# docker save c3987965c15d > /opt/soft/postgres.img

[root@localhost ~]# cd /opt/soft

[root@localhost soft]# ls

postgres.img

[root@localhost soft]# sz postgres.img 

 

[root@localhost2 ~]# rz

[root@localhost2 ~]# docker load < postgres.img 

[root@localhost2 ~]# docker images
  REPOSITORY   TAG     IMAGE ID        CREATED       SIZE
  <none>      <none>   c3987965c15d    3 months ago   196.5 MB
[root@localhost2 ~]# docker tag c3987965c15d centos:1
[root@localhost2 ~]# docker images
  REPOSITORY    TAG      IMAGE ID      CREATED    SIZE
  centos       1       c3987965c15d   3 months ago 196.5 MB

Docker的镜像迁移

原文:http://www.cnblogs.com/zhangzeyu/p/6483450.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!