How to save docker image to tar and load from it


Saving a docker image to a tar file

-o option: set file name

docker save [option] [image name]:[tag]

Loading a tar docker image

Loaded image name is from the docker saved image name

docker load -i [tar file name]

Source

  • https://docs.docker.com/engine/reference/commandline/save/
  • https://docs.docker.com/engine/reference/commandline/load/

Leave a comment