Comments (1)
The issue is that IIS is running a different user than the docker user that starts the entrypoint. The docker-iis image uses a helper process as entrypoint (IIS.ServiceMonitor) that reads the environment variables and writes them to IIS config using appcmd, e.g.:
C:\Windows\system32\inetsrv\appcmd.exe set config -section:system.applicationHost/applicationPools /+"[name='DefaultAppPool'].environmentVariables.[name='MyVariable',value='MyVariableValue']" /commit:apphost
The asp.net image also uses this same entry point, so I would expect that it would work the same way.
Perhaps you can verify that the updated configuration is indeed written to the applicationHost.config file on startup? Typically it's in system32\inetsrv\config
from iis-docker.
Related Issues (20)
- change the default website
- Non-root user not able to start w3svc service in docker HOT 3
- Unable to enable SSL binding of the website after applying KB5001384 HOT 3
- Cannot load container in Docker on Mac OS HOT 1
- Docker build fails for ltsc2019 HOT 3
- IIS Servicemonitor crashes when %18 is used in environment variable HOT 2
- FROM mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2022 HOT 1
- Several service failed to start within the IIS docker image
- Failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0
- Default App Pool crashes when enabling 32 bit support HOT 1
- Windows License Activation failed in image aspnet:4.8 HOT 2
- Execute script for dynamic content
- Create sample or instructions on how to enable HTTP/2 HOT 2
- This repo is missing important files HOT 1
- Unable to use IIS: drive in powershell
- Is this repository active? HOT 3
- It doesn't work after I installed hosting bundle 8.0.1, the application show error: Could not find dotnet.exe at 'c:\inetpub\wwwroot\api\dotnet' or using the system PATH environment variable. HOT 2
- Container does not start if certain characters are used in environment variables HOT 3
- Support for IIS backup/restore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iis-docker.