feat(copy-docker): Initial commit

This commit is contained in:
hygienic-books 2023-06-22 01:30:59 +02:00
parent 0a7eb15f7e
commit e90058a04f

6
copy-docker.sh Normal file
View 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'