azure - 如何使用 'Create container group' 操作将私有(private) docker hub 镜像部署到 Azure 逻辑应用

标签 azure docker azure-logic-apps dockerhub

首次在 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/

相关文章:

c# - 检索 Azure 用户访问的持久 token

node.js - Azure Web应用程序中lwip的node-gyp重建问题: fatal error C1083: Cannot open include file: 'nan.h' : No such file or directory

azure - Azure 应用服务计划插槽是否共享 CPU/内存?

caching - Nginx 内容缓存导致 Docker 内存峰值

Azure逻辑应用程序: Service Bus Trigger Fails withe error ""message": "Error from token exchange....."

azure - 部署逻辑应用 API 连接,提供不记名 token

azure - 我们如何在 Azure Bash 中一起运行多个 CLI 命令?

docker - systemd 在开始下一个服务单元之前不等待我的服务单元完成

Docker 上的 Django - 关系 "django_session"在字符 109 处不存在