Docker 导出多个镜像合并成一个tar

Docker 导出多个镜像合并成一个tar

Docker

查看当前镜像

https://www.lingkb.com/wp-content/uploads/2020/01/1578152729-50c7fc87036b198.png-419.5kB

导出单个镜像

docker save [images] > [name.tar]

https://www.lingkb.com/wp-content/uploads/2020/01/1578152729-5b5472b98e81553.png-338.6kB

倒出多个镜像合并成一个tar包

docker save [images] [images] > [name.tar]

https://www.lingkb.com/wp-content/uploads/2020/01/1578152729-a0af552436de017.png-332.4kB

这样我们一个tar包中就包含了3个镜像

欢迎评论。
lingkb » Docker 导出多个镜像合并成一个tar