docker get tags of an image code example
Example 1: how to change the tag of docker image
docker tag 7b9b13f7b9c0 ubuntu/dev:v1.6.14.2017
Example 2: get tag list of image from hub using cli
[email protected]:~# 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"