Error message when trying to start container

RW dvlpmnt 0 Reputation points
2024-05-04T14:59:30.4333333+00:00

When I try to browse my deployed application, I receive an error message that says "container can not start". How can I troubleshoot this issue and get my container to start successfully?

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nimmala Anveshreddy 3,560 Reputation points
    2024-05-06T09:15:59.8733333+00:00

    Hello RW dvlpmnt,

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

    Check the logs of your container to identify any error message.

    https://learn.microsoft.com/en-us/azure/container-instances/container-instances-get-logs

    Check your Dockerfile for any syntax errors or to the base image, exposed ports, and start commands.

    check if your container is configured to listen correct port and NSG rule is allowed to reach the container.

    Ensure that your container is with sufficient resources to support your application's requirements, such as CPU or memory which cause it to fail during startup if resources are insufficient.

    Hope this helps you

    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!

    0 comments No comments

Your answer

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