Last active
December 17, 2018 13:39
-
-
Save steinbrueckri/ef9507fc8e18946971c61dfc570597d1 to your computer and use it in GitHub Desktop.
Transferring a Docker image via SSH
This file contains 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
# docker save | streamed images to STDOUT | |
# bzip2 | compress image an the fly | |
# pv | show progress bar | |
# ssh | forward stream to remote host | |
# bunzip2 | decompress on remote host | |
# docker load | reimport on remote host | |
docker save <image> | bzip2 | pv | ssh user@host 'bunzip2 | docker load' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment