Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save therevoman/0e737b63a60898d37850101772c05f5b to your computer and use it in GitHub Desktop.

Select an option

Save therevoman/0e737b63a60898d37850101772c05f5b to your computer and use it in GitHub Desktop.
Simple script to pull all images for the image streams
#!/bin/sh
IMAGES=`oc get is -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n openshift`
for i in ${IMAGES}; do
echo "Pulling: $i"
./oc import-image $i --all -n openshift
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment