[英]Azure Container Instances - Connection to ACR that does not public access
We need to have ACR exposed only to selected.networks (not All.networks).我们需要将 ACR 仅公开给 selected.networks(而不是 All.networks)。 How should container instance be configured in order to be able to pull images from ACR?
应该如何配置容器实例以便能够从 ACR 中提取图像? We deploy ACI using ARM template.
我们使用 ARM 模板部署 ACI。
Full context:完整上下文:
We are building image in Azure DevOps (using microsoft-hosted agent, calling az acr build.. --agent-pool <agentpool-name>
. The build is successful, however when we want to create the container instance (using Azure Powershell and ARM template) we get an error that the image is not accessible in the container group.我们正在 Azure DevOps 中构建图像(使用微软托管的代理,调用
az acr build.. --agent-pool <agentpool-name>
。构建成功,但是当我们想要创建容器实例时(使用 Azure Powershell 和ARM 模板)我们收到一个错误,指出在容器组中无法访问该图像。
However, when I make ACR accessible by all.networks, everything works, so I guess there must be some ACR setting that would allow to pull image from ACR to ACI using microsoft-agent.但是,当我让 all.networks 可以访问 ACR 时,一切正常,所以我想一定有一些 ACR 设置允许使用 Microsoft 代理将图像从 ACR 拉到 ACI。
You can make deploy to Azure Container Instances from Azure Container Registry using a managed identity or service principal您可以使用托管身份或服务主体从 Azure 容器注册表部署到 Azure 容器实例
Only an Azure Kube.netes Service cluster or Azure virtual machine can be used as a host to access a container registry using a service endpoint.只有 Azure Kube.netes 服务集群或 Azure 虚拟机可以作为主机使用服务端点访问容器注册表。 Other Azure services including Azure Container Instances aren't supported.
不支持其他 Azure 服务,包括 Azure 容器实例。
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-.net#preview-limitations https://learn.microsoft.com/en-us/azure/container-registry/container-registry-.net#preview-limitations
Other Azure Container Instances limitations:其他 Azure 容器实例限制:
https://learn.microsoft.com/en-us/azure/container-instances/container-instances-virtual.network-concepts#other-limitations https://learn.microsoft.com/en-us/azure/container-instances/container-instances-virtual.network-concepts#other-limitations
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.