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

后端 未结 2 959
小鲜肉
小鲜肉 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: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.

提交回复
热议问题