How to save and load docker image?

admin/ April 23, 2017/ Docker, Linux/ 0 comments

How to save docker image on your local disk ?

To save the docker images, we need to use docker save the docker images.

 

To check available docker images on the system.

$ docker images

Example Output-:

To save the docker image.

$ docker save <ImageName or ImageID > filename.tar
$ docker save --output filename.tar <ImageName or ImageID>

Example-:

To remove the Docker image

$ docker rmi ImageName

To load the Docker image

$ docker load < filename.tar

Example Output-:

Leave a Reply