Think before you speak, read before you think.

docker image 迁移

要迁移 docker image 有三个方法

1.拿到 docker repo, Dockerfile 重新 build

docker build .

2.通过 docker registry

 docker pull image

3.打包后通过文件迁移

保存一个 tar 文件

docker save -o fedora-latest.tar fedora:latest 

把文件传输到目标机器

docker load -i path to image tar file

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *