How to fix the imagepullfailure error [ "Container \u0027XXX\u0027 was terminated with exit code \u0027\u0027 and reason \u0027ImagePullFailure\u0027","Reason":"ContainerTerminated","EventSource":"ContainerAppController","Count":68}

Dan Kanivas 0 Reputation points
2024-04-03T03:34:07.6633333+00:00

Hello, I am facing the imagepullfailure error in my azure container app, it show activation fail with the following error message

"Container \u0027crm-backend-api-testing-scale-1\u0027 was terminated with exit code \u0027\u0027 and reason \u0027ImagePullFailure\u0027","Reason":"ContainerTerminated","EventSource":"ContainerAppController","Count":68}

I used ACR and previous day it is still running and make no configuration changes, but I got these error message and I don't know how to fix it, I used correct Credential for ACR.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
464 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
450 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anveshreddy Nimmala 3,545 Reputation points Microsoft Vendor
    2024-04-03T04:40:02.2533333+00:00

    Hello Dan Kanivas,Welcome to microsoft Q&A, Thankyou for posting your query here.

    ImagePullFailure error you're encountering in your Azure Container App, indicates that the system is unable to pull the Docker image from your Azure Container Registry (ACR).

    Check if your Azure Container Registry (ACR) is working properly. You can look this up online in your Azure account or use a special command tool called Azure CLI.

    Make sure the image name and tag specified in your Container App deployment configuration exactly match those in your ACR.

    check the managed identity assigned to your Container App or the service principal's access rights, to ensure the Container App has the right credentials to pull images from your ACR.

    If your ACR is behind a network restriction or you have IP whitelisting enabled, ensure that your Container App's outbound connections are allowed. This might involve configuring VNet integration or updating your network rules to allow access.

    Some SKUs of ACR like Basic have limitations on webhooks and advanced features. If your usage patterns have changed, consider if upgrading your ACR SKU might be necessary.

    please use the below link if it can help you to resolve your issue

    https://techcommunity.microsoft.com/t5/apps-on-azure-blog/troubleshooting-guide-resolving-azure-app-services-image-pull/ba-p/4010201

    Hope this helps youIf an answer has been helpful, please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    f0c6ee09-372a-46c3-b232-747087569b29


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.