microsoft / iis-docker

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

Image fails to run with gmsa account using --security-opt "credentialspec=" option #175

Closed undecided2013 closed 5 months ago

undecided2013 commented 4 years ago

Using command docker run --security-opt "credentialspec=file://testgmsa.json" --hostname gmsaWeb -it microsoft/iis powershell The image returns Service 'w3svc' has been stopped

APPCMD failed with error code 4312

Failed to update IIS configuration

Same command but targeting ltsc2019 works:

docker run --security-opt "credentialspec=file://testgmsa.json" --hostname gmsaWeb -it mcr.microsoft.com/windows/servercore:ltsc2019 powershell

I am suspicious of ServiceMonitor Entrypoint not handling the security-opt parameter correctly.

I posted same error in other places such as:

https://github.com/microsoft/dotnet-framework-docker/issues/607 https://github.com/microsoft/IIS.ServiceMonitor/issues/70

Have not seen any activity. This is a huge showstopper for migrating legacy asp.net sites/apps to docker containers.

jkrnl commented 2 years ago

Any update on this?