azure - 将使用 buildah 构建的映像从 Azure 容器注册表部署到 Azure 容器实例
问题描述
因此,我使用 Buildah 构建了一个映像并将其推送到 ACR(天蓝色容器注册表),但是我尝试的任何方法,AZ cli、门户、terraform,部署到 ACI(天蓝色容器实例)的部署在 30 分钟后都会失败,原因是暂停。ACI创建成功,镜像可以从ACR成功推拉,镜像本地使用podman运行。ACI 在尝试从映像创建容器时挂起。
显示错误
Deployment to resource group '<my-resource-group>' failed.
Additional details from the underlying API that might be helpful: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details
原始错误
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
"details": [
{
"message": "Subscription deployment didn't reach a successful provisioning state after '00:30:00'."
}
]
}
关于可能是什么问题的任何建议?
解决方案
决议
尽管文档声明 ACR 和 ACI 可以使用 OCI 图像,但 ACI 似乎仍然需要图像才能使用 docker 格式。使用 buildah 创建映像时,您需要使用 --format docker 标志 ->buildah bud --format docker
以便从 ACR 中提取映像并部署到 ACI。
推荐阅读
- java - 如何解决 icalendar 导入时的 ParserException?
- javascript - 点击“加载更多”后,我无法顺利转移到获取图片的开头
- c# - 如何将 Automapper 与 Object in Object 一起使用
- linux - 线程控制块和线程本地存储的区别以及哪一个包含__stack_chk_guard变量
- r - 使用 PNG/JPEG 图像创建多面板图
- eclipse - EGit 多分支问题
- sql - SQL 不正确结束失败
- mysql - mysql中的组concat函数不给出结果
- r - 如何使用 expss 创建两个标题表
- django-rest-framework - 如何在 django rest 框架中过滤嵌套的序列化器