Skip to content

Instantly share code, notes, and snippets.

@jgreat
Created August 23, 2018 00:19
Show Gist options
  • Save jgreat/6245df8b16f363bbefc9348b9eacb1bd to your computer and use it in GitHub Desktop.
Save jgreat/6245df8b16f363bbefc9348b9eacb1bd to your computer and use it in GitHub Desktop.
rancher ha air-gap
#!/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