如何在程序集引用更改后将 Azure Functions v2 运行时 运行 保留在容器中?
How do I keep Azure Functions v2 runtime running in a container after an assembly reference change?
遵循 Docker Hub 和 GitHub 上可用的 Azure Functions 运行时 v2 容器定义,我使用
启动运行时
CMD ["dotnet", "C:\runtime\Microsoft.Azure.WebJobs.Script.WebHost.dll"]
访问某些功能时日志显示 "Assembly reference changes detected" 并停止主机...
> docker logs {id}
info: Function.GraphQuery[0]
Assembly reference changes detected. Restarting host...
....
info: Host.General[0]
Environment shutdown has been triggered. Stopping host and signaling shutdown.
....
info: Host.General[0]
Stopping Host
info: Host.Startup[0]
Job host stopped
容器不见了:
> docker ps {id}
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
引用更改后,我需要进行哪些调整才能保留容器 运行?
问题已在 2.0.11888-alpha 版本中修复或消失
遵循 Docker Hub 和 GitHub 上可用的 Azure Functions 运行时 v2 容器定义,我使用
启动运行时CMD ["dotnet", "C:\runtime\Microsoft.Azure.WebJobs.Script.WebHost.dll"]
访问某些功能时日志显示 "Assembly reference changes detected" 并停止主机...
> docker logs {id}
info: Function.GraphQuery[0]
Assembly reference changes detected. Restarting host...
....
info: Host.General[0]
Environment shutdown has been triggered. Stopping host and signaling shutdown.
....
info: Host.General[0]
Stopping Host
info: Host.Startup[0]
Job host stopped
容器不见了:
> docker ps {id}
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
引用更改后,我需要进行哪些调整才能保留容器 运行?
问题已在 2.0.11888-alpha 版本中修复或消失