WebApp for container is trying to pull from wrong container registry

627 views Asked by At

I've tried setting up WebApp for Containers in Azure and selecting a private container registry pointing to an Azure Container Registry in another subscription but the webapp tries to pull the image from registry-1.docker.io instead of my private one. Can anyone see what I am missing? enter image description here

1

There are 1 answers

1
Charles Xu On BEST ANSWER

The issue is caused by the image name. You need to set the image name as yourACR.azurecr.io/image:tag if you use a private registry and point to an Azure Container Registry. All the docker images are pulled from the registry docker.io in default. For the private registry, you must set the registry name before the image name.