I’m trying to get a image manifest using the registry api, making a request like bellow:
curl -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -H "Authorization: Bearer <token>" https://registry-1.docker.io/v2/ubuntu/manifests/latest
I get the token using this URL:
https://auth.docker.io/token?service=registry.docker.io&scope=repository:ubuntu:pull
But I’m receiving a 401 - Unauthorization
as response.
What is the correct scope for this endpoint? or there is any other way that I can get the same info as docker inspect ubuntu
.