一、 save命令将镜像保存为tar文件。

       

docker save -o images.tar postgres:9.6

docker save -o 保存的文件名  来源镜像
 

二、load命令将tar文件加载到本地镜像中。

      

docker load -i  images.tar

从images.tar中加载镜像
 

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐