Created
August 23, 2018 00:19
-
-
Save jgreat/6245df8b16f363bbefc9348b9eacb1bd to your computer and use it in GitHub Desktop.
rancher ha air-gap
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
#!/bin/sh | |
IMAGES=`cat rancher-images.txt` | |
for IMAGE in $IMAGES; do | |
until docker inspect $IMAGE > /dev/null 2>&1; do | |
docker pull $IMAGE | |
done | |
docker tag $IMAGE jgreat-test-airgap-registry.rancher.space/$IMAGE | |
docker push jgreat-test-airgap-registry.rancher.space/$IMAGE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment