Docker Community Forums

Share and learn in the Docker community.

Unable to install exe file on microsoft/dotnet-framework image

I am trying to build an image for a Silverlight-based application using dotnet-framework:4.7.2-sdk as base

The issue is that I cannot install Silverlight_64.exe or Silverlight_Development.exe
The exe files have already been copied to the image.

# escape=`
FROM microsoft/dotnet-framework:4.7.2-sdk AS build
WORKDIR /silverlight
COPY \components\silverlight\ /silverlight
RUN ["Silverlight_Developer.exe", "q", "doNotRequireDRMPrompt", "noupdate"]

Here is output when I run the dockerfile:

Step 3/5 : RUN ["Silverlight_Developer.exe", "q", "doNotRequireDRMPrompt", "noupdate"]
 ---> Running in 6f8de26eb329

it freezes here with no error and no output!

But when I checked the log file, I could see an error:

[00:42:10.636][WindowsDaemon     ][Error  ] Error running exec 20f38bc419f4744392bfb8f8009975c1fc5fa849a791b65cccb9d75e688dd54b in container: container 6f8de26eb3293740ee7b1a287dc4fd83c611cb6c8d4bfe637746d2976036385e encountered an error during CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e)
[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000] extra info: {"CommandLine":"cmd.exe /C \"ECHO 192.168.1.103    host.docker.internal \u003e\u003e %systemroot%\\system32\\drivers\\etc\\hosts \u0026 ECHO 192.168.1.103    gateway.docker.internal \u003e\u003e %systemroot%\\system32\\drivers\\etc\\hosts\"","User":"Administrator","WorkingDirectory":"C:\\silverlight","Environment":{"COMPLUS_NGenProtectedProcess_FeatureEnabled":"0","NUGET_VERSION":"4.4.1","ROSLYN_COMPILER_LOCATION":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\MSBuild\\Current\\Bin\\Roslyn"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
[00:42:10.636][WindowsDaemon     ][Info   ] debug: attach: stdout: end
[00:42:10.636][WindowsDaemon     ][Info   ] debug: attach: stderr: end
[00:42:10.636][WindowsDaemon     ][Info   ] debug: attach done
[00:42:10.636][WindowsDaemon     ][Info   ] debug: Calling GET /v1.40/exec/20f38bc419f4744392bfb8f8009975c1fc5fa849a791b65cccb9d75e688dd54b/json
[00:42:10.644][ApiProxy          ][Error  ] time="2019-09-15T00:42:10+10:00" msg="exit status 126"
[00:42:13.827][LocalhostForwarder][Info   ] Reconciliation succeeded
[00:42:13.827][WindowsDaemon     ][Info   ] debug: Calling GET /v1.40/containers/json?limit=0

I changed the dockerfile and added the USER command:

# escape=`
FROM microsoft/dotnet-framework:4.7.2-sdk AS build
WORKDIR /silverlight
COPY \components\silverlight\ /silverlight
USER ContainerAdministrator
RUN ["Silverlight_Developer.exe", "q", "doNotRequireDRMPrompt", "noupdate"]

This time, the build command failed and no freezing!

Step 4/5 : USER ContainerAdministrator
 ---> Using cache
 ---> 7accbcf3f405
Step 4/5 : RUN ["Silverlight_64.exe", "q", "doNotRequireDRMPrompt", "noupdate"]
 ---> Running in 6f71f3d47a65
container 6f71f3d47a6511f455397c63eeaef9d1395f9ae33f6196b0139de5da995144eb encountered an error during CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e)
[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000] extra info: {"CommandLine":"Silverlight_Developer.exe q doNotRequireDRMPrompt noupdate","User":"ContainerAdministrator","WorkingDirectory":"C:\\silverlight","Environment":{"COMPLUS_NGenProtectedProcess_FeatureEnabled":"0","NUGET_VERSION":"4.4.1","ROSLYN_COMPILER_LOCATION":"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\MSBuild\\Current\\Bin\\Roslyn"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}

I have already logged out and logged into the docker using my UserID (not email) .
Host Machine is win 10.

Any help would be great.
Thanks