Created
November 15, 2018 00:47
-
-
Save tlrobinson/1bbb809b514c3580ffd48f47166f29bb to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
set -eu | |
MACHINE=$1 | |
IMAGE=$2 | |
MONITOR=$(command -v pv || echo cat) | |
docker save $IMAGE | bzip2 | $MONITOR | docker-machine ssh $MACHINE 'bunzip2 | docker load' |
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
#!/usr/bin/env bash | |
set -eu | |
HOST=$1 | |
IMAGE=$2 | |
MONITOR=$(command -v pv || echo cat) | |
docker save $IMAGE | bzip2 | $MONITOR | ssh $HOST 'bunzip2 | docker load' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment