Skip to content

Instantly share code, notes, and snippets.

@JediMindtrick
Created December 24, 2014 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save JediMindtrick/2c2be0b66695f987bf22 to your computer and use it in GitHub Desktop.
Save JediMindtrick/2c2be0b66695f987bf22 to your computer and use it in GitHub Desktop.
List of commands to import-export and load-save docker images
#see http://blog.flux7.com/blogs/docker/docker-commands
#and http://www.jamescoyle.net/how-to/1512-export-and-import-a-docker-image-between-nodes
#and https://github.com/docker/docker/issues/188
#export to file
docker ps -a
docker export <CONTAINER ID> > image.tar
#import from file
tar -c <FILENAME> | docker import - image_name
#save to file
docker ps -a
docker save image_name > image.tar
#load from file
docker load < image.tar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment