Docker 101 : Moving docker images between different hosts
Moving an image from one registry to another requires uploading and pulling the image.
To be able to do that, we could use the "docker save" command which saves an image to a file.
We could pull our image using the below command:
The we run our image to test it using the following:
Now, we zip our image in "debian.tar.gz" file using the name of the image:
The file can be imported to another host using the below command:
We can check our image using the following command:
We could also use the "docker save" command as follows:
We could then extract the "debian-relocated.tar.gz" file and use it on another host as follows:
Comments