如何导出或导入容器镜像(export、import、save、load)操作步骤详解?
- 内容介绍
- 文章标签
- 相关推荐
本文共计527个文字,预计阅读时间需要3分钟。
1. 使用镜像导出并保存docker image export save docker_images_1
2. 将镜像导出到文件docker save -o test.tar image_name_1
3. 将镜像保存到特定路径docker save image_name_1 /test.tar
4. 镜像导入和容器导入的区别 1. 镜像导入是复制的过程 2. 容器导入是将镜像创建为容器的过程
一、镜像导出 save
查看镜像 docker images 1 导出镜像 docker save -o test.tar image_name 1 或者 docker save image_name > /test.tar
镜像和容器 导出和导入的区别:
1.镜像导入 是复制的过程 2.容器导入 是将当前容器 变成一个新的镜像
save 和 export区别:
1)save 保存镜像所有的信息-包含历史 2)export 只导出当前的信息
二、容器导出
1,查看本机的容器 使用 docker ps -a 命令查看本机所有的容器。
2,导出容器 (1)使用 docker export 命令根据容器 ID 将镜像导出成一个文件。
本文共计527个文字,预计阅读时间需要3分钟。
1. 使用镜像导出并保存docker image export save docker_images_1
2. 将镜像导出到文件docker save -o test.tar image_name_1
3. 将镜像保存到特定路径docker save image_name_1 /test.tar
4. 镜像导入和容器导入的区别 1. 镜像导入是复制的过程 2. 容器导入是将镜像创建为容器的过程
一、镜像导出 save
查看镜像 docker images 1 导出镜像 docker save -o test.tar image_name 1 或者 docker save image_name > /test.tar
镜像和容器 导出和导入的区别:
1.镜像导入 是复制的过程 2.容器导入 是将当前容器 变成一个新的镜像
save 和 export区别:
1)save 保存镜像所有的信息-包含历史 2)export 只导出当前的信息
二、容器导出
1,查看本机的容器 使用 docker ps -a 命令查看本机所有的容器。
2,导出容器 (1)使用 docker export 命令根据容器 ID 将镜像导出成一个文件。

