I am already logged in into Azure through az login
, however in order to pull images from an ACR I had to also run az acr login
- I was not even asked for credentials, because the same account is used.
I do not understand why is az login
not good enough?
Afaik az acr login
actually does perform a docker login
with your local docker runtime under the hood. As your docker runtime does not know anything about Azure, just az login
does not suffice. You could do the same manually be getting the credentials from your ACR and then run docker login my.azurecr.io --username my --password xxx
az acr login
is not required to work with the ACR resource, but only with the registry from a docker perspective, such as pulling or pushing images.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.