How can I list all tags of a Docker image on a remote Docker registry using the CLI (preferred) or curl?
Preferably without pulling all versions from the remote regi
curl -u : https://$your_registry/v2/$image_name/tags/list -s -o - | \ tr -d '{' | tr -d '}' | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | \ awk -F: '{print $3}' | sed -e 's/,/\n/g'
You can use it if your env has no 'jq', = )