Created
September 14, 2015 16:50
-
-
Save cgswong/da52e76fd8ab4363645c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
1. Find ID of container to move | |
`docker ps -a` or `docker images` | |
2. Save container as new image: | |
`docker save [newimage] | gzip > /tmp/docker-[newimage].tar.gz` | |
3. Copy file, `/tmp/docker-[newimage].tar.gz`, to destination and gunzip | |
4. Load new image: | |
`docker load --input docker-[newimage].tar` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment