Skip to content

Instantly share code, notes, and snippets.

@cgswong
Created September 14, 2015 16:50
Show Gist options
  • Save cgswong/da52e76fd8ab4363645c to your computer and use it in GitHub Desktop.
Save cgswong/da52e76fd8ab4363645c to your computer and use it in GitHub Desktop.
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