azure - 从私有(private) docker 镜像在 azure 上运行单个容器应用程序返回 : :( Application Error

标签 azure docker azure-web-app-service

我正在寻找使用 azure web 应用程序服务来运行多个容器应用程序,但我开始考虑更简单的情况,即为已经作为容器实例运行的图像运行单个容器。

目前,我从网站进行此部署,而不是使用 CLI

enter image description here

当我访问网站网址时,出现此错误:

enter image description here

从容器设置部分我收到此消息:

2019-12-21 15:45:15.759 INFO  - Waiting for response to warmup request for container policy-recomd_0_31cfeac3. Elapsed time = 212.2003193 sec
2019-12-21 15:45:30.845 INFO  - Waiting for response to warmup request for container policy-recomd_0_31cfeac3. Elapsed time = 227.2867951 sec
2019-12-21 15:45:33.875 ERROR - Container policy-recomd_0_31cfeac3 for site policy-recomd did not start within expected time limit. Elapsed time = 230.3163708 sec
2019-12-21 15:45:33.876 ERROR - Container policy-recomd_0_31cfeac3 didn't respond to HTTP pings on port: 5100, failing site start. See container logs for debugging.
2019-12-21 15:45:33.887 INFO  - Stoping site policy-recomd because it failed during startup.

编辑 这是我为该应用程序获得的图像菜单:

enter image description here

我将端口号添加到配置中,但仍然不起作用:

enter image description here

最佳答案

这是Azure Web App的限制,它只支持公开端口80和443。您需要在Dockerfile中公开端口80和5100,最后在Azure App Application Settings中添加两个新变量,PORT=5100并且 WEBSITES_PORT=80。

关于azure - 从私有(private) docker 镜像在 azure 上运行单个容器应用程序返回 : :( Application Error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59437645/

相关文章:

Docker "cp"命令处于详细模式

docker - 在 docker swarm 中推出更新

c# - 覆盖 Azure 上 RedisSessionStateProvider 的连接

c# - Azure设置内部url的可用性测试

azure - 如何在Azure数据工厂的查找事件中仅读取几行数据

c# - azure-sdk-for-net :Compiling source code

python - Azure 表存储 Python SDK,语法无效

c# - 警告 : No element in the source document matches '/configuration/connectionStrings/add[@name=' MyDB']'

docker - 从docker-compose容器内部访问主机VPN(laradock)

node.js - Nodejs 应用程序的 Azure Web App 在部署后加载空白屏幕