首次在 Docker Hub 上创建镜像并尝试将其部署到 Azure。我正在尝试使用 Azure 逻辑应用程序安排一个私有(private) docker hub 容器每天运行,类似于:https://github.com/Azure-Samples/aci-logicapps-integration
鉴于我正在部署私有(private)镜像,我添加了附加参数: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."
}
}
为“服务器”凭据提供的正确格式是什么?
最佳答案
imageRegistryCredentials
中的服务器应为 index.docker.io
,就像使用 ACR 时的服务器一样。您还可以查看the solution in Private docker hub image example .
关于azure - 如何使用 'Create container group' 操作将私有(private) docker hub 镜像部署到 Azure 逻辑应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57165359/