Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save swamibluedata/a32c3021131302e1e73ed07c6b6310ec to your computer and use it in GitHub Desktop.
Save swamibluedata/a32c3021131302e1e73ed07c6b6310ec to your computer and use it in GitHub Desktop.
IMAGES=$(docker search bluedata --limit=100 | grep bluedata | awk '{print $1}')
echo "FOLLOWING IMAGES FOUND $IMAGES"
for image in $IMAGES; do
echo "fetching all tags for image $image"
TAGS=$(curl -s "https://registry.hub.docker.com/v2/repositories/$image/tags/" | jq -r '."results"[]["name"]')
for tag in $TAGS; do
echo "IMAGE TO PULL $image:$tag"
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment