Last active
December 21, 2018 18:07
-
-
Save micaelis72/f950adc2777ff62429b4995dc26a5554 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
REGISTRY=docker://registry.access.redhat.com | |
DESTINY=./copy-images | |
for images in $(cat ${1} | grep -v ^#) ; do | |
echo "Copying image ${images}" | |
mkdir -p ${DESTINY}/${images} | |
skopeo copy --dest-compress ${REGISTRY}/${images} dir:${DESTINY}/${images} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment