Created
December 24, 2014 16:20
-
-
Save JediMindtrick/2c2be0b66695f987bf22 to your computer and use it in GitHub Desktop.
List of commands to import-export and load-save docker images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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