[英]Why does one need to login into the Azure Container registry before pulling the images from it, i.e. az login is not good enough?
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.我已经通过
az login
到 Azure,但是为了从 ACR 中提取图像,我还必须运行az acr login
- 我什至没有被要求提供凭据,因为使用了相同的帐户。
I do not understand why is az login
not good enough?我不明白为什么
az login
不够好?
Afaik az acr login
actually does perform a docker login
with your local docker runtime under the hood.据我所知
az acr login
实际上没有执行docker login
与引擎盖下当地码头工人运行。 As your docker runtime does not know anything about Azure, just az login
does not suffice.由于您的 docker 运行时对 Azure 一无所知,因此仅
az login
是不够的。 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
您可以手动执行相同的操作,从 ACR 获取凭据,然后运行
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. az acr login
不需要使用 ACR 资源,而只需要从 docker 角度使用注册表,例如拉取或推送图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.