Azure Container Registry not able to authorize a read only user when using docker v2 api but docker commands work

Mohammed Irfan Ullah 1 Reputation point
2021-07-08T07:21:04.827+00:00

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

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
511 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.