-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
How can I install .NET Framework 4.8.1 runtime inside mcr.microsoft.com/windows/server:ltsc2022-KB5058385 base image?
##Details:
My Dockerfile
FROM mcr.microsoft.com/windows/server:ltsc2022-KB5058385
# Copy .NET Framework 4.8.1 installer to the container
COPY ["./windows/Prerequisites/NDP481-x86-x64-AllOS-ENU.exe", "C:/Install/Files/"]
# Set the working directory inside the container
WORKDIR C:/Install/Files
# Install .NET Framework 4.8.1
RUN powershell.exe -Command \
$ErrorActionPreference = 'Stop'; \
Start-Process NDP481-x86-x64-AllOS-ENU.exe -ArgumentList '/quiet /norestart' -Wait ;
# Other instructions removed for brevity
NDP481-x86-x64-AllOS-ENU.exe is the offline installer for .NET Framework 4.8.1
docker build completes without errors.
However, inside the resulting container, the registry entry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full keeps showing REG_DWORD 0x81041. (i.e. .NET Framework 4.0)
Please assist.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested