Docker deprecated the API of the docker hub v1
cmoulliard opened this issue · 0 comments
cmoulliard commented
Issue
Docker deprecated the API of the docker hub v1 - see here
We can nevertheless use the following syntax (using Tokebn Bearer auth) to access the docker registry information of a repository/namespace
token=$(curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:${ref}:pull" | jq -r '.token')
curl -H "Authorization: Bearer $token" -s "https://registry-1.docker.io/v2/${ref}/tags/list" | jq -r '.tags[]'