I have created a token with repository pull Scope. So this token basically acts as a read only user. When I do login and pull using the docker commands it works fine. But the same when using the curl commands of docker v2 it is giving unauthorized, the same when using admin user works fine.
Problem is observed only when we use a repository pull token for authorization in curl gives "code": "UNAUTHORIZED",
"message": "authentication required