The error shows port it's listening on Port 8000 .
Review if incorrect port values and port exposed by the Docker container.
Applications deployed to App Service Linux should not be attempting to bind to localhost
or 127.0.0.1
.
Just to highlight more info on this:
PORT
does not directly have the same meaning as WEBSITES_PORT
when using Web App for Containers. But does directly alter the docker run
command in regards to the container port if WEBSITES_PORT
is not set. The meaning of WEBSITES_PORT
is to tell which port the platform needs to run docker run
against.
PORT
also may have specific meaning to your application if this is referenced in your codebase. So it may be needed to add both WEBSITES_PORT
and PORT
. Therefore, it is possible to just only use PORT
or both PORT
and WEBSITES_PORT
.
Azure Load Balancer has a default idle timeout setting of four minutes, it is the maximum amount of time that a request can take without sending any data back to the response. It is not configurable. Please check this FAQ: Why does my request time out after 230 seconds?
Kindly checkout the following approaches to overcome this issue :
Troubleshooting ‘Container didnt respond to HTTP pings on port, failing site start’
Kindly let us know, I'll follow-up with you further.
--
If the answer helped (pointed, you in the right direction) > please click Accept Answer - it will help users to find the answers quickly.