Skip to content

Instantly share code, notes, and snippets.

@justsml
Created August 3, 2015 05:44
Show Gist options
  • Save justsml/d540d5ba2a83a2d5c35c to your computer and use it in GitHub Desktop.
Save justsml/d540d5ba2a83a2d5c35c to your computer and use it in GitHub Desktop.
Clone/Backup Docker - Live Stream over SSH pipe !!!!
# 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