码迷,mamicode.com
首页 > 其他好文 > 详细

Docker的镜像迁移

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

标签:gre   docker   cal   image   root   pos   tag   months   class   

[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的镜像迁移

标签:gre   docker   cal   image   root   pos   tag   months   class   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!