Azure容器实例: image from public docker leads to InaccessibleImage error

标签 azure containers azure-container-instances

我正在尝试 ACI 服务。 我决定使用 hello world 图像 this公共(public) docker hub 容器。

在 azure 中,我选择了其他存储库选项,并将 modem7/docker-rickroll:latest 放在那里,出现了绿色复选标记,并将下一个选项卡保留为默认值。

创建 ACI 时出现以下错误: "message": "容器组 'testaci' 中的镜像 'modem7/docker-rickroll:latest' 无法访问。请检查镜像和注册表凭据。"

我希望让给定的图像启动并运行,并且我尝试不在图像名称末尾指定标签或完全限定它,就像index.docker.io/modem7/docker-rickroll:latest 但结果相同。

它是一个公共(public)容器,所以我认为它是可以访问的。 如何从 Az Portal 将此或其他公共(public) Docker Hub 镜像部署到 ACI?

最佳答案

当我尝试使用 modem7/docker-rickroll 镜像创建 ACI 实例时,我也遇到了相同的错误。 enter image description here

enter image description here

但是当我尝试从不同的注册表部署相同的镜像时,我可以成功配置它。 看来注册表有问题。

我已按照以下步骤操作,它对我有用。

第 1 步:拉取镜像、更改标签并将其上传到个人注册表以在 ACI 中进行验证。 enter image description here

第 2 步:创建 Azure 容器实例,如下所示。

enter image description here

enter image description here

enter image description here

第 3 步:验证容器实例,如下所示。

enter image description here

enter image description here

如果 URL 持续加载,请在“容器”选项卡中检查容器是否已启动。

enter image description here

关于Azure容器实例: image from public docker leads to InaccessibleImage error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75586584/

相关文章:

c# - 获取Azure中资源的绝对URL

Azure 服务总线 - 主题、消息 - 使用 .NET Core

containers - Bluemix-无法获取插件:从存储库 'container-service'中查找 'Bluemix'

Azure容器实例更改IP地址

triggers - 可以使用触发器调用Azure容器实例吗?

azure - 如何使用 Azure CLI 安装 Web 应用程序扩展 AspNetCoreRuntime.3.0.x86?

azure - 调用Graph API错误: Request_DataContractVersionMissing

html - 是否可以制作一个仅包含 html 的透明容器,同时保持文本不透明?

css - 如何让 img 填充移动网站的内部容器?

windows - 无法创建 Azure 容器实例 (Windows)