当前,我正在尝试使用带有Docker推送的VSCODE构建和推动JSON部署模板,然后在我的Azure容器注册表中(从这里我部署到我当前使用的测试机(桌面。虽然该程序能够成功构建,但我一直被告知我未经授权并需要身份验证。
令我困惑的是一个专门在桌面上发生的问题。在另一台笔记本电脑上,我能够构建并将完全相同的项目推向Azure。两者都有相同的VS代码扩展名,并且都有Docker Hyper-X
这是我不断获得的输出:
Successfully built d19328623fb5
Successfully tagged registry.azurecr.io/datareader:0.0.1-amd64
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
The push refers to repository [registry.azurecr.io/datareader]
2bb83b459efa: Preparing
270c55623dec: Preparing
41541bbe5d49: Preparing
e1fb49b61103: Preparing
c5753aeba639: Preparing
eb1d9679f7a5: Waiting
7b93a090aa43: Waiting
6dc71048c62b: Waiting
f93e213b867d: Waiting
332a46295f6a: Waiting
e31a56e800f9: Waiting
72f1784c5337: Waiting
b75ffbc550d3: Waiting
428c1ba11354: Waiting
b097f5edab7b: Waiting
27712caf4371: Waiting
8241afc74c6f: Waiting
unauthorized: authentication required
我希望将注册表推向成功,但是我找不到任何可能发生在我的台式机而不是我的笔记本电脑的区别。
ACR需要与CLI明显的登录。您以前可能从未在桌面上登录ACR。尝试运行:
az acr login