question

MohammedIrfanUllah-5042 avatar image
0 Votes"
MohammedIrfanUllah-5042 asked MohammedIrfanUllah-5042 commented

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

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
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MohammedIrfanUllah-5042 , Thank you for your question.

Can you please share the REST API request you are trying to perform? Please mention the client tool being used?

Note: Please ensure to remove any sensitive information

0 Votes 0 ·

curl --location --request GET "https://<registry_host>/v2/<Image_path>/manifests/<tag>" --header "Authorization: Basic <username:password base64 encoded>"

the above is the query I am using username is token name and password is token password

0 Votes 0 ·

0 Answers