Skip to content

Instantly share code, notes, and snippets.

@pointcom
Created November 26, 2017 21:19
Show Gist options
  • Save pointcom/2b563d197ab60eb946bcc906c38a7421 to your computer and use it in GitHub Desktop.
Save pointcom/2b563d197ab60eb946bcc906c38a7421 to your computer and use it in GitHub Desktop.
List all the tags of a particular docker image
#!/bin/bash
i=0
while [ $? == 0 ]
do
i=$((i+1))
curl https://registry.hub.docker.com/v2/repositories/library/ruby/tags/?page=$i 2>/dev/null|jq '."results"[]["name"]'
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment