我正在尝试创建容器实例作为附加到现有 VNET 和子网的专用网络。我昨天设法让它运行,但是更新或刷新图像的速度非常慢。我正在 dockerhub 上使用私有(private)镜像。
现在,当我尝试使用相同的 VNET、子网和镜像创建 ACI 时,我收到错误:
这是我在尝试通过 CLI 创建时使用的命令,但令人放心的是(我认为)我得到了与通过门户完全相同的错误。
//失败
az container create
--resource-group xxx
--cpu 2
--memory 3
--image xxx/xxx:latest
--ip-address Private
--location WestEurope
--name acixxxtest
--os-type Linux
--ports 2001
--protocol TCP
--registry-login-server index.docker.io
--registry-password xxx
--registry-username xxx
--restart-policy OnFailure
--subnet /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx/subnets/xxxx
--vnet /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx
我尝试使用公共(public)网络设置这个完全相同的图像,它完成得很好,还按预期更新和重新启动工作。
//有效
az container create
--resource-group xxx
--cpu 2
--memory 3
--image xxx/xxx:latest
--ip-address Public
--location WestEurope
--name acixxxtest
--os-type Linux
--ports 2001
--protocol TCP
--registry-login-server index.docker.io
--registry-password xxx
--registry-username xxx
--restart-policy OnFailure
我在删除关联的网络配置文件时也遇到了问题,但我找到了解决方法,因为我认为这是一个已知问题。
我已在两个不同的订阅上尝试过此操作,但使用不同的 CPU/RAM 等组合,得到了完全相同的结果。共同点似乎是添加任何类型的 VNET。
使用下面的链接,我认为我可能在某种程度上违反了“西欧”位置的资源限制使用情况,但从我所看到的情况来看,我在范围内。
我还应该提到我已经尝试过使用 OOTB NGINX 镜像进行此操作,但也失败了
https://learn.microsoft.com/en-us/azure/container-instances/container-instances-region-availability
如果有人提供任何建议或反馈或分享类似的经历,我们将不胜感激。
更新:
似乎其他人也遇到了同样的问题: Azure container instances (ACI) deployment to virtual network fails (region: westeurope)
最佳答案
我会联系 MSFT 提出支持请求,要求获得 ACI 配额
我是在这里回复“Azure container instances (ACI) deployment to virtual network fails (region: westeurope)”的人
似乎是西欧地区的后端容量问题
关于出现 VNET 创建错误的 Azure 容器实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62152721/