Created
August 3, 2015 05:44
-
-
Save justsml/d540d5ba2a83a2d5c35c to your computer and use it in GitHub Desktop.
Clone/Backup Docker - Live Stream over SSH pipe !!!!
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
# Save the built CONTAINER (named myapp), stream via ssh | |
docker save myapp | bzip2 | pv | ssh root@vhost2 'bunzip2 | docker load' | |
# Clone a running INSTANCE, stream via ssh | |
docker export web0 | bzip2 | pv | ssh root@vhost2 'bunzip2 | docker import web0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment