1. 程式人生 > >docker打包遷移映象

docker打包遷移映象

[[email protected] soft]# docker save  eb9a804ae885 > /opt/soft/postgres.img
[[email protected] 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!
[email protected]'s password: 
postgres.img                      
[
[email protected]
soft]# docker load < postgres.img [[email protected] soft]# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE <none> <none> eb9a804ae885 10 days ago 265.7 MB [[email protected]
soft]# docker tag eb9a804ae885 postgres:postgres [[email protected] soft]# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE postgres postgres eb9a804ae885 10 days ago 265.7 MB