docker打包迁移镜像
[root@oegw1 soft]# docker saveeb9a804ae885 > /opt/soft/postgres.img[root@oegw1 soft]# scp postgres.img 192.168.157.134:/opt/soft/Address 192.168.157.134 maps to localhost, but this does not map ba
·
[root@oegw1 soft]# docker save eb9a804ae885 > /opt/soft/postgres.img
[root@oegw1 soft]# scp postgres.img 192.168.157.134:/opt/soft/
Address 192.168.157.134 maps to localhost, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
root@192.168.157.134's password:
postgres.img
[root@oegw2 soft]# docker load < postgres.img
[root@oegw2 soft]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
<none> <none> eb9a804ae885 10 days ago 265.7 MB
[root@oegw2 soft]# docker tag eb9a804ae885 postgres:postgres
[root@oegw2 soft]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
postgres postgres eb9a804ae885 10 days ago 265.7 MB
更多推荐
已为社区贡献4条内容
所有评论(0)