Running a docker container in Azure web app: didn't respond to HTTP pings on port

后端 未结 2 938
小鲜肉
小鲜肉 2021-01-19 11:32

I\'m trying to run a docker container on Azure web app in linux os. The web app server is sucessfuly pulling the image but fails on the run command with the error message: d

相关标签:
2条回答
  • 2021-01-19 12:01

    This is a limitation of the Azure Web App, it only supports to expose the port 80 and 443. So when you want to expose other ports such as 9000 and 8080, then you got the error that it didn't respond to HTTP pings on that port.

    0 讨论(0)
  • 2021-01-19 12:07

    Thanks for the answers, basically it's what Charles Xu said. To solve it I just exposed port 80 and 9000 in the Dockerfile and finally in Azure App Application Settings add two new variables, PORT=9000 and WEBSITES_PORT=80.

    0 讨论(0)
提交回复
热议问题