I am trying to containerize a legacy frozen application. It requires D drive to be present else installation fails. I tried following the instructions in this post.
Docker build successful but my package installation fails. When I go into interactive mode, I cannot do
cd D:\
My docker file -
FROM mcr.microsoft.com/windows/servercore:ltsc2019
RUN dism.exe /online /enable-feature /all /featurename:iis-webserver /NoRestart
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN powershell -NoProfile -Command \
New-Item -ItemType directory -Path C:\drived ; \
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices' -Name 'D:' -Value '\??\C:\drived' -PropertyType String;
RUN mkdir "D:\test"
SHELL ["cmd", "/C"]
CMD [ "cmd" ]