feat(copy-docker): Initial commit
This commit is contained in:
parent
0a7eb15f7e
commit
e90058a04f
6
copy-docker.sh
Normal file
6
copy-docker.sh
Normal file
@ -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'
|
Loading…
x
Reference in New Issue
Block a user