Skip to content

Instantly share code, notes, and snippets.

@pedrolopesme
Last active March 6, 2017 18:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedrolopesme/1f0898a067d18f6e4cc03dcb0606bffd to your computer and use it in GitHub Desktop.
Save pedrolopesme/1f0898a067d18f6e4cc03dcb0606bffd to your computer and use it in GitHub Desktop.
Listing all docker image versions available from a specific repo
# BASIC COMMAND
$ wget -q https://registry.hub.docker.com/v1/repositories/<USER>/<IMAGE>/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'
# EXAMPLE: LISTING ALL JBOSS IMAGES
$ wget -q https://registry.hub.docker.com/v1/repositories/jboss/wildfly/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'
# OUTPUTS :
latest
10.0.0.Final
10.1.0.Final
8.1.0.Final
8.2.0.Final
8.2.1.Final
9.0.0.Final
9.0.1.Final
9.0.2.Final
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment