Azure容器-无法登录到私有注册表“收到来自docker注册表的错误响应" [英] Azure Container - can not login to private registry "Error response received from the docker registry"
问题描述
从Azure我们尝试使用具有准备好的YAML的Azure容器实例来创建容器.在执行 az container create
命令的机器上,输入密码后,我们可以成功登录到我们的私有注册表(例如JFrog Artifactory上的private.dev)
from Azure we try to create container using the Azure Container Instances with prepared YAML.
From the machine where we execute az container create
command we can login successfully to our private registry (e.g private.dev on JFrog Artifactory ) after entering password
docker login private.dev -u svc-faselect
Login succeeded
我们有要部署的YAML文件,并尝试使用SAME服务器中的 az
命令创建容器.
We have YAML file for deploy, and trying to create container using the az
command from the SAME server.
az container create --resource-group FRONT-SELECT-NA2 --registry-login-server="private.dev"
--registry-username=svc-faselect --registry-password="..." --file ads-azure.yaml
An error response is received from the docker registry 'private.dev'. Please retry later.
我的YAML文件中只有一张图像.我有一个很大的问题要调试,为什么返回此错误,因为错误响应未提供任何有用的信息.在类似的网络问题中进行搜索,但没有成功: https://docs.microsoft.com/zh-cn/azure/container-registry/container-registry-疑难解答访问
I have only one image in my YAML file. I am having real big problem to debug why this error is returned since Error response does not provide any useful information. Search among the similar network issues but without success: https://docs.microsoft.com/en-us/azure/container-registry/container-registry-troubleshoot-access
推荐答案
我看到了片刻可能是您遇到问题的原因.
I see few moments that could be the reason of your problem.
az容器创建选项中不应包含 = -registry-login-server --registry-password和--registry-username
There should be no = at az container create options --registry-login-server --registry-password and --registry-username
命令应该看起来像
az container create --resource-group FRONT-SELECT-NA2 --registry-login-server jfrogtraining-docker-dev.jfrog.io --registry-username svc-faselect --registry-password "..." --file ads-azure.yaml
这篇关于Azure容器-无法登录到私有注册表“收到来自docker注册表的错误响应"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!