未向AAD注册的Azure应用程序

登录到容器注册表时出现以下错误

命令:

docker login <MY_REGISTRY_NAME>.azurecr.io

错误信息:

Error response from daemon: Get https://<MY_REGISTRY_NAME>.azurecr.io/v2/: unauthorized: Application not registered with AAD

回答

转到 Container Registry 中的 Access Keys 并启用 admin 用户,然后使用自动生成的凭据通过 Docker 登录

  • How does this help with Active Directory Authentication? Sure, it allows you to create a single "admin" user, with a password that you can what, pass around to everyone in your organization? This is horrible advice.

回答

对我来说,让一切顺利进行的最简单方法是在https://docs.docker.com/cloud/aci-integration/上阅读来自 Docker 的文档。实际上,您所要做的就是在 Azure 中创建容器,打开 PowerShell(如果还没有,请安装/导入 azure 模块)并运行命令“docker login azure”。这将弹出一个浏览器窗口,您可以从那里直接登录到您的容器。我还没有尝试过有多个容器,因为到目前为止我只需要一个,但我无法想象这会很困难。


以上是未向AAD注册的Azure应用程序的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>