Last active
March 6, 2017 18:55
-
-
Save pedrolopesme/1f0898a067d18f6e4cc03dcb0606bffd to your computer and use it in GitHub Desktop.
Listing all docker image versions available from a specific repo
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
# 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