Container instance running but cannot be accessed through web browser

mnkyntigr 1 Reputation point
2022-01-30T12:49:22.607+00:00

My container instance is running successfully and I can log into a bash shell through the Azure portal. I am unable to connect to the ACI using the assigned IP address or FQDN using any web browser. The connection gets reset everytime. Please help

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
477 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Manu Philip 14,366 Reputation points MVP
    2022-01-30T12:57:11.287+00:00

    Check that you exposed the right port which your application listen inside the container image.

    FQDN's default access is towards port 80 port. If your application listens to some other port, and you need to expose it separately and to access the application like FQDN:port: customlabel.regionname.azurecontainer.io:<port>


    If the Answer is helpful, please click "Accept Answer" and upvote it

  2. mnkyntigr 1 Reputation point
    2022-02-03T20:46:46.02+00:00

    @Manu Philip
    Thank you for your suggestion to my earlier question. I dont think the port is my problem. Trying to troubleshoot, I have run the tutorial "Deploy a container application to Azure Container Instances"

    All the steps went through without any errors thrown. When I query the status of the aci-tutorial-app from my Azure CLI: this is what I get:

    az container show --resource-group MLcompany_1 --name aci-tutorial-app --query instanceView.state ~
    "Running"

    Yet when I look for at the container logs this is what I get:
    az container logs --resource-group MLcompany_1 --name aci-tutorial-app
    standard_init_linux.go:228: exec user process caused: exec format error

    Does the error message suggest what is going wrong? I tried with my original container with my app and also with a container for nginx. All containers work locally on my m1 mac machine.

    Thank you for your help in advance.