diff --git a/copy-docker.sh b/copy-docker.sh new file mode 100644 index 0000000..cda355e --- /dev/null +++ b/copy-docker.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Assume 'root@' unless specified +artifact="${1}" +target="${2}" +[[ ! "${target}" == *'@'* ]] && target='root@'"${target}" +docker save "${artifact}" | pv | ssh -o ConnectTimeout=3 "${target}" 'docker load'