Thanks for asking question! If your site doesn't start suggest you check Docker log to troubleshoot it.
There are several ways to access Docker logs.
- Docker logs appear on the Container Settings page in the portal. (These are truncated, but you can download them by clicking on the
Download Logs button.) - You can find the Docker log in the /LogFiles directory. You can access this via the Kudu (Advanced Tools) Bash console or by using an
FTP client to access it. - You can use our API to download the current logs. (See "You can discover and download the latest Docker logs using Kudu" in this
post for info on that.) The naming convention for the Docker log is YYYY_MM_DD_RDxxxxxxxxxxxx_docker.log .
Further You may want to know that that your container must respond to an HTTP ping.
Could you please confirm if port : 8080 is exposed? as if it was never exposed the attempt to ping the container, we aren't pinging on a port on which the container is listening.
There are a couple of ways to resolve this.
Use the EXPOSE instruction in your Dockerfile to expose port 8080.
Use the WEBSITES_PORT app setting with a value of "8080" to expose that port.
Also, some container takes a long time to start means when we start your container, we'll wait a while for it to start and initialize. We consider the startup to be successful once the container is running and once we get a response to a ping so that we know it's ready to respond to HTTP traffic. We'll wait 230 seconds for that to happen. If we don't have a successful start within 230 seconds, we'll assume there's a problem and we'll stop the container.
You can resolve this by increasing that 230 second wait time up to a limit of 1800 seconds.
To configure that, add an app setting called WEBSITES_CONTAINER_START_TIME_LIMIT
and set it to the number of seconds you would like for us to wait for your container to start (up to a maximum of 1800
).
Check this detailed link on things you should know web app & linux :
https://techcommunity.microsoft.com/t5/apps-on-azure/things-you-should-know-web-apps-and-linux/ba-p/392472
Let us know if issue remains.