get tag list of image from hub using cli 1

get tag list of image from hub using cli

root@googlinux.com:~# curl 'https://registry.hub.docker.com/v2/repositories/library/debian/tags/'|jq '."results"[]["name"]'
"7.11"
"testing"
"oldstable-backports"
"oldstable"
"8"
"8.5"
"stretch"
"experimental"
"rc-buggy"
"wheezy-backports"

Here is what the above code is Doing:
1. It’s using the curl command to get the JSON data from the Docker Hub API.
2. It’s using the jq command to parse the JSON data and extract the tag names.
3. It’s using the jq command to parse the JSON data and extract the tag names.

Similar Posts