首次在Docker Hub上创建映像,然后尝试将其部署到Azure。我正在尝试安排一个私有docker hub容器每天使用Azure Logic App运行,类似于以下内容:https://github.com/Azure-Samples/aci-logicapps-integration
鉴于我正在部署私有映像,因此添加了附加参数:imageRegistryCredentials
,如下所示:
[
{
"password": "<The password for the private registry>",
"server": "<The Docker image registry server without a protocol such as 'myacr.azurecr.io'>",
"username": "<The username for the private registry>"
}
]
我看过其他有关docker注册表URL的帖子,并尝试输入“服务器”证书的值,例如:
- registry.hub.docker.com/username/repo
- registry.hub.docker.com/username/repo:tag
- index.docker.io/v1/
- docker.io/library/repo:tag
但是他们都抛出以下错误:
{
"error": {
"code": "InvalidImageRegistryServer",
"message": "The server '<server>' in the 'imageRegistryCredentials' of container group '<container group>' is invalid. It should be a valid host name without protocol."
}
}
提供“服务器”凭证的正确格式是什么?
答案 0 :(得分:1)
imageRegistryCredentials
中的服务器应为index.docker.io
,就像使用ACR时的服务器一样。您还可以查看the solution in Private docker hub image example。