Created
November 26, 2017 21:19
-
-
Save pointcom/2b563d197ab60eb946bcc906c38a7421 to your computer and use it in GitHub Desktop.
List all the tags of a particular docker image
This file contains 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/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