Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error response from daemon: unauthorized: authentication require

Tags:

azure-devops

I'm getting this weird error in azure pipelines. We use a ACR to supply our base images and we connect to this using a service connection which works well most of the time. However occasionally we get an error:

/usr/bin/docker pull /base-images/python:3.7-buster-vanilla Error response from daemon: Get https:///v2/base-images/python/manifests/3.7-buster-vanilla: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information.

There does not seem to be any clear explanation for this because when we perform a retry of the specific task this works fine.

We have no separate login to the acr and we only define the connection that needs to be used in the job itself:

    container:
      image: servers.azurecr.io/base-images/python:3.7-buster-vanilla
      endpoint: server-Service-Connection

I have been looking at the build logs but was not able to get any usefull information from there. If any additional information is needed i would of course be happy to supply it.

like image 710
Lautje Avatar asked Aug 08 '26 12:08

Lautje


1 Answers

I fixed this error using the Azure CLI az acr login --name *registry-name* Solution explained here at Azure Registry troubleshooting docs

like image 131
xyeres Avatar answered Aug 12 '26 06:08

xyeres



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!