title: Docker run gives "CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2)"
body: <p>I am very new to docker. And I am trying to dockerize a helloworld API.
  But when I tried to docker run the image, I got this error:</p>
  <blockquote>
  <p>C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error
  response from daemon: container
  f891d7fc7af6e1183256043e6105fc87e25c6959d9745cc972b42c7b2e6f5a06
  encountered an error during CreateProcess: failure in a Windows system
  call: The system cannot find the file specified. (0x2) [Event Detail:
  Provider: 00000000-0000-0000-0000-000000000000] [Event Detail:
  Provider: 00000000-0000-0000-0000-000000000000] [Event Detail:
  vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(168)\vmcomputeagent.exe!00007FF683797B25:
  (caller: 00007FF68377A312) Exception(4) tid(108) 80070002 The system
  cannot find the file specified.
  CallContext:[\Bridge_ProcessMessage\ComputeSystemManager_ExecuteProcess\VmHostedContainer_ExecuteProcess]
  Provider: 00000000-0000-0000-0000-000000000000] extra info:
  {&quot;CommandLine&quot;:&quot;dotnet
  HelloWorldDocker.dll&quot;,&quot;WorkingDirectory&quot;:&quot;C:\app\bin&quot;,&quot;Environment&quot;:{&quot;COMPLUS_NGenProtectedProcess_FeatureEnabled&quot;:&quot;0&quot;,&quot;ROSLYN_COMPILER_LOCATION&quot;:&quot;c:\\RoslynCompilers\\tools&quot;},&quot;CreateStdInPipe&quot;:true,&quot;CreateStdOutPipe&quot;:true,&quot;CreateStdErrPipe&quot;:true,&quot;ConsoleSize&quot;:[0,0]}.</p>
  </blockquote>
  <p>I have a simple asp.net api. And I have it published to the same folder <code>./publish </code>
  And here is my docker file</p>
  <pre><code>FROM microsoft/aspnet:4.7.1-windowsservercore-1709
  WORKDIR /app
  
  COPY ./publish .
  WORKDIR bin
  RUN ls
  ENTRYPOINT [&quot;dotnet&quot;, &quot;HelloWorldDocker.dll&quot;]
  </code></pre>
  <p><code>ls</code> shows that the <code>HelloWorldDocker.dll</code> is in the directory <code>./bin (app/bin)</code>. IDK what is wrong here...</p>