docker save命令

docker save命令 :导出docker镜像,到linux本地

    形式为:

   docker save -o   指定地址和文件名   镜像名

    例子: 

   把名字为test,版本为4.0的docker镜像,保存到/data/export目录下,保存名字和格式为test.tar

   docker save -o /data/export/test.tar test:4.0

猜你喜欢

转载自blog.csdn.net/qq_18769269/article/details/82699911