-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile: USER ContainerUser
results in "failure in a Windows system call: The user name or password is incorrect. (0x52e)"
#490
Comments
@ntrappe-msft: Hello Nicole, may I raise this issue to your attention? I'm working for a blue-chip corporation running a critical project here and we need the above Windows image to be running smoothly in very short term. |
Hi, I tried repro'ing your setup but I didn't hit that error. I'm wondering whether it's coming from something else. The image built successfully and I could start up the container with the mounted volume. Are you running this on Windows Server 2022? And could you share the version of Docker you're using? |
Thanks for taking the time, Nicole. I already provided the information you requested. It's just being collapsed behind the I didn't want to distract from the situation by littering my request with technical information, so I collapsed it. |
@ntrappe-msft: FWIW, this is a screencast, depicting the issue: Docker.container.not.launching.mp4NB: Today, a new Docker Desktop version arrived. Same issue … I updated the version information in my original post above to reflect the new Docker Desktop version. |
The WS2016-based image keeps being picked by default for the
|
@profnandaa. Thank you for this valuable suggestion! Here are my test results:
So, the |
Thanks @profnandaa for sharing more information. @SetTrend I'll be slow to respond this week because of Build but I'll attempt to repro again and look into when that error is typically thrown. Thanks for your patience. |
Any new insights on this issue? |
Hi! I believe I may know what's going on but I need to trace the Dockerfiles that make up the sdk images. I'll post an update on Monday. |
@SetTrend Could you try pulling the latest See if you can try: docker rmi mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022
docker pull mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022
docker run -u ContainerUser mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022 powershell If that doesn't work, it's likely a configuration issue with your host. |
Hello, @ntrappe-msft, I tried today. Yet, this image is incompatible with my host:
Can you provide an image available for hosts like mine? Otherwise I would be required to request for setting up a whole new VM. |
@SetTrend Hey, I believe |
I tried today. While I can now run as What is the cause for " |
@SetTrend I couldn't repro that error. Could you try a very simple version of the command to see whether it's some file permissions that may be triggering it? Or if we're having more issues with setting the user in the Dockerfile?
PS C:\fake> dir
helloworld.txt
docker run --rm -it --mount 'type=bind,src=C:\fake\,dst=C:\repo\' mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022
C:\> cd repo
C:\repo> dir
helloworld.txt If this fails for you, then I'll probably need a crash dump. |
Hello, @ntrappe-msft, Pardon me for my late response. I tried your suggestion. While it works for running a container from the original |
@SetTrend Hmm that seems odd. I'll try to repro it with a derived image too. |
Any news, @ntrappe-msft? |
1 similar comment
Any news, @ntrappe-msft? |
Two months ago, my client refrained from using Docker for building their .NET Framework projects, as we didn't get a feasible, working solution from you. I guess, no one in real life can be expected to wait for months to expect a future running solution. So, this issue has become purely personal, for me to decide whether to use Windows Containers in the future: Will I live to see this issue fixed? Or do you plan to consider this repository "deprecated" and "obsolete"? |
This issue has been open for 30 days with no updates. |
2 similar comments
This issue has been open for 30 days with no updates. |
This issue has been open for 30 days with no updates. |
This issue has been open for 30 days with no updates. |
Describe the bug (and Steps To Reproduce)
Building the following simple Dockerfile:
… using:
… and running the created image like this:
… results in:
docker: Error response from daemon: container 46a5305c0e305a9b5e7ef5fd746478ea9211b61d136fc7a08b8e4468939514a7 encountered an error during hcs::System::CreateProcess: c:\windows\system32\cmd.exe: failure in a Windows system call: The user name or password is incorrect. (0x52e) [Event Detail: Provider: 00000000-0000-0000-0000-000000000000].
Expected behavior
Everything should work flawlessly.
Configuration:
Additional context
This also doesn't work:
… results in:
docker: Error response from daemon: hcs::CreateComputeSystem cf0c577360d731d6e09be5c1eec629751c3891eba85353163c0978cc0c293054: The request is not supported.
The only difference is the additional
--mount
argument.The text was updated successfully, but these errors were encountered: