microsoft / iis-docker

Dockerfile for IIS
https://hub.docker.com/r/microsoft/iis/
MIT License
288 stars 128 forks source link

Environment variables not set if call early #176

Closed iskiselev closed 3 years ago

iskiselev commented 4 years ago

Due to microsoft/IIS.ServiceMonitor#74, if web call will reach IIS before ServiceMonitor updates environment variables, they will not be updated in affected app pool. As an workaround for this in docker file IIS service may be started manually - it will be started by ServiceMonitor in that case.

shirhatti commented 3 years ago

This is a known limitation. Unfortunately, we cannot change the base image to have was/w3svc stopped by default. This would be breaking especially since we're aware a large number of customers override the entry point.

The simple workaround would be to add net stop /y was to your Dockerfile