[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

 

 

posted on 2017-03-01 11:31  喵喵喵喵喵!  阅读(662)  评论(0编辑  收藏  举报