microsoft / iis-docker

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

Enable32bitapponwin64 fails on image iis:20190515-windowsservercore-ltsc2019 #174

Closed porrascarlos802018 closed 5 months ago

porrascarlos802018 commented 4 years ago

If we deploy this docker file: ARG BASE_IMAGE=mcr.microsoft.com/windows/servercore/iis:20190515-windowsservercore-ltsc2019

ARG BASE_IMAGE=mcr.microsoft.com/windows/servercore/iis:20200512-windowsservercore-ltsc2019

FROM ${BASE_IMAGE}

SHELL ["powershell"]

RUN Import-Module WebAdministration ; \ Set-ItemProperty -Path 'IIS:\AppPools\DefaultAppPool' -Name enable32BitAppOnWin64 -Value $true ; \ Set-ItemProperty -Path 'IIS:\AppPools\DefaultAppPool' -Name recycling.periodicrestart.privateMemory -Value 3200000

EXPOSE 80 8172

using these commands: docker build -t test-image . docker run test-image docker exec -it powershell

inside using powershell you execute Get-IISAppPool image

it shows started, as soon you execute curl, it crashes, stops. image

It used to work just fine , same version of the image, now is not working, Its needed to have this version working, otherwise all applications would have to be recompiled with newer version, which seems to work at this point.

ARG BASE_IMAGE=mcr.microsoft.com/windows/servercore/iis:20200512-windowsservercore-ltsc2019