title: The username or password is incorrect when launching Docker from Visual Studio 2019
body: <p>So, I'm very new to Docker and I'm trying to use it to containerize an ASP.NET (Framework 4.7.2) application. My platform is Windows 10 and the application is to run under a Windows container. Here's what I've done:</p>
  <ol>
  <li>Click on &quot;Add -&gt; Docker Support...&quot; when right-clicking the project in Visual Studio.</li>
  <li>Waiting for it to generate a Dockerfile.</li>
  <li>Clicking &quot;Run&quot;.</li>
  </ol>
  <p>A generic 500 IIS error pops up when Chrome launches, and it opens at IP 172.26.102.145 rather than localhost:port, like it normally does when running without Docker. I looked at the event logs and this is what I see:</p>
  <pre><code>exec's CreateProcess() failed [module=libcontainerd exec=9c32d86647bc2b4b4207c447f15433d06603297dd01513445405b7841e9aa64c container=fbe41e9f4206b4b8ba3c789c7e0514e313589182e90c36e0a71b7d6cd74e17e5 namespace=moby error=container fbe41e9f4206b4b8ba3c789c7e0514e313589182e90c36e0a71b7d6cd74e17e5 encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The user name or password is incorrect. (0x52e)
  [Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]
  [Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]
  [Event Detail: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF7FF789F4B: (caller: 00007FF7FF73E13A) Exception(4) tid(4c0) 8007052E The user name or password is incorrect.
      CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess] 
  Provider: 00000000-0000-0000-0000-000000000000] extra info: {&quot;CommandLine&quot;:&quot;cmd.exe /C \&quot;ECHO 192.168.1.71    host.docker.internal \u003e\u003e %systemroot%\\system32\\drivers\\etc\\hosts \u0026 ECHO 192.168.1.71    gateway.docker.internal \u003e\u003e %systemroot%\\system32\\drivers\\etc\\hosts\&quot;&quot;,&quot;User&quot;:&quot;Administrator&quot;,&quot;WorkingDirectory&quot;:&quot;C:\\inetpub\\wwwroot&quot;,&quot;Environment&quot;:{&quot;COMPLUS_ForceENC&quot;:&quot;1&quot;,&quot;COMPLUS_NGenProtectedProcess_FeatureEnabled&quot;:&quot;0&quot;,&quot;DEV_ENVIRONMENT&quot;:&quot;1&quot;,&quot;ROSLYN_COMPILER_LOCATION&quot;:&quot;C:\\RoslynCompilers\\tools&quot;,&quot;VBCSCOMPILER_TTL&quot;:&quot;604800&quot;},&quot;CreateStdInPipe&quot;:true,&quot;CreateStdOutPipe&quot;:true,&quot;CreateStdErrPipe&quot;:true,&quot;ConsoleSize&quot;:[0,0]}]
  </code></pre>
  <p>I read elsewhere that the issue may be because of the IP? I ran the following command in Powershell to fetch a different one that I thought would work:</p>
  <pre><code>docker inspect &lt;container_id&gt;
  </code></pre>
  <p>But the IP was the same under &quot;Networks/nat/IPAddress&quot;.</p>
  <p>I also tried disabling firewalls/antivirus as well as logging into my account on Docker Desktop. I'm not sure what I'm supposed to authenticate, my Microsoft login somehow? I feel like I'm making a rookie mistake!</p>
  <p>Oh, and here's my Dockerfile:</p>
  <pre><code>#Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed.
  #For more information, please see https://aka.ms/containercompat 
  
  FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
  ARG source
  WORKDIR /inetpub/wwwroot
  COPY ${source:-obj/Docker/publish} .
  </code></pre>