Skip to content

Instantly share code, notes, and snippets.

@ryujaehun
Created August 14, 2018 14:34
Show Gist options
  • Save ryujaehun/4980a03a3851775d192b42245bf04924 to your computer and use it in GitHub Desktop.
Save ryujaehun/4980a03a3851775d192b42245bf04924 to your computer and use it in GitHub Desktop.
#usage list-dh-tags <repo>
#example: docker-tag node
function docker-tag(){
wget -q https://registry.hub.docker.com/v1/repositories/$1/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment