How to fix ContainerCreateFailure error ["Msg":"Container \u0027xxx\u0027 was terminated with exit code \u0027\u0027 and reason \u0027ContainerCreateFailure\u0027","Reason":"ContainerTerminated","EventSource":"ContainerAppController"]

David 0 Reputation points
2024-04-25T05:53:01.05+00:00

Hello! When I deploy a container app in my original managed environment (Consumption Only) with 2 CPU cores and 4Gi memory, I am successfully able to pull my image from my Container Registry and deploy it.

However if I were to create a dedicated workspace and deploy with 4 CPU cores and 8Gi memory, I run into the error:
"Msg":"Container \u0027xxxx\u0027 was terminated with exit code \u0027\u0027 and reason \u0027ContainerCreateFailure\u0027","Reason":"ContainerTerminated","EventSource":"ContainerAppController"

This error occurs right after: "Msg":"Successfully pulled image \u0027xxxx.azurecr.io/xxx:v0.0.1\u0027 in 0.0311357s","Reason":"PulledImage","EventSource":"ContainerAppController","Count":1}

I don't know how to fix it - I am still investigating. Perhaps it has something to do with the new dedicated workspace?

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

1 answer

Sort by: Most helpful
  1. Anveshreddy Nimmala 2,465 Reputation points Microsoft Vendor
    2024-04-25T07:26:40.6633333+00:00

    Hello David

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

    Make sure that the dedicated workspace has the appropriate resource quotas and limits set up to support your container requirements.

    Look for any discrepancies in network configurations, security settings, or other environment-specific settings that might affect container deployment.

    check the container logs for more detailed error messages.

    Ensure that the container image is fully compatible with the new environment. Differences in underlying OS versions, dependencies, or architecture could lead to issues.

    you're using a managed environment, check if there are any known issues or maintenance updates from the platform provider that could be affecting your deployments.

    If 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!

    72b4ab2e-2e74-4e84-9f88-fe246a48c374

    0 comments No comments