Search code examples
azureconnectionfqdnazure-container-instances

How to fix "Cannot connect to server" error when trying to open FQDN from Azure Container Instances?


I'm currently trying to deploy my first container with the Azure Container Instance. Everything worked fine so far, but when I use az container show and browse the FQDN I get an error message:

Cannot connect to server

The page cannot be displayed. The page you are looking for is currently unavailable.

The internet connection is up and I can connect to everything else.

How can I fix the problem?


Solution

  • When you create the ACI, there are some things you should pay attention to:

    1. Make sure the docker image can work fine locally
    2. The port you expose is right, both in the docker image and create ACI
    3. The ACI is in the running state

    Check above and when you browse the FQDN you can add the port at the end just like: FQDN:port.

    Any more question please give me the message.