Azure Web 服务 [Web App for Containers (linux)] - 如何定期防止超时

Dai*_*ung 1 web-services timeout azure azure-web-app-service azure-web-app-for-containers

Web Services 定期出现错误日志:

错误 - 站点 YYY 的容器 XXX 未在预期时间限制内启动。经过的时间 = 230.3790706 秒

我设置了微软博客中已经提到的以下设置,但仍然失败:

1. Use the EXPOSE instruction in your Dockerfile to expose port 3000.
2. Use the WEBSITES_PORT app setting with a value of "3000" to expose that port.
Run Code Online (Sandbox Code Playgroud)

如何配置来防止此错误?

Dai*_*ung 6

在 Azure 中发现类似问题:容器未在预期时间内启动(WebApp)并提供解决方案。

添加应用程序设置:WEBSITES_CONTAINER_START_TIME_LIMIT = 1800