2

I want help in understanding how docker pull works for acr images. I have a private acr repository.

So i run az acr login -n <repo> --expose-token --output tsv --query accessToken to print out the access token.

Then i use this access token to login through docker: docker login <repo>.azureacr.io --username 00000000-0000-0000-0000-000000000000 --password '<ACCESS TOKEN>'. The login works.

Then i try pulling the docker image: docker pull <image>:<tag> which works, but when i do docker manifest inspect <image>:<tag> it fails with the following exception:

errors:
denied: requested access to the resource is denied   
unauthorized: authentication required

Questions:

  1. How do i check what permissions I have/need to run these docker commands?
  2. If docker pull is working is it wrong to assume docker manisfest inspect will also work? I mean docker somehow needs to check if the image with the tag exists before pulling it right?
Pranav Raj
  • 781
  • 1
  • 8
  • 19

0 Answers0