Docker的镜像迁移
Posted 喵喵喵喵喵!
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker的镜像迁移相关的知识,希望对你有一定的参考价值。
[[email protected] ~]# mkdir /opt/soft/
[[email protected] ~]# docker save c3987965c15d > /opt/soft/postgres.img
[[email protected] ~]# cd /opt/soft
[[email protected] soft]# ls
postgres.img
[[email protected] soft]# sz postgres.img
[[email protected] ~]# rz
[[email protected] ~]# docker load < postgres.img
[[email protected] ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> c3987965c15d 3 months ago 196.5 MB
[[email protected] ~]# docker tag c3987965c15d centos:1
[[email protected] ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
centos 1 c3987965c15d 3 months ago 196.5 MB
以上是关于Docker的镜像迁移的主要内容,如果未能解决你的问题,请参考以下文章