Skip to content

Instantly share code, notes, and snippets.

@urjitbhatia
Created April 2, 2018 00:40
Show Gist options
  • Save urjitbhatia/47d1b8a5ff38db164900d584b77925dc to your computer and use it in GitHub Desktop.
Save urjitbhatia/47d1b8a5ff38db164900d584b77925dc to your computer and use it in GitHub Desktop.
One liner to send docker image to a remote host over ssh
docker save <image> | bzip2 | pv | ssh user@host 'bunzip2 | docker load'
## Credits: https://stackoverflow.com/questions/23935141/how-to-copy-docker-images-from-one-host-to-another-without-via-repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment