Azure容器-无法登录到私有注册表“收到来自docker注册表的错误响应" [英] Azure Container - can not login to private registry "Error response received from the docker registry"

查看:79
本文介绍了Azure容器-无法登录到私有注册表“收到来自docker注册表的错误响应"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从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

https://docs.microsoft.com/zh-CN/cli/azure/container?view=azure-cli-latest#az_container_create-examples

命令应该看起来像

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆