title: Unable to run windows based docker container on my machine: encountered an error during hcsshim::System::CreateProcess
body: <p>I've seen this error listed in various places but none of the solutions help me, my Dockerfile is VERY basic:</p>
  <pre><code>FROM mcr.microsoft.com/windows:20H2
  LABEL maintainer=&quot;rmilejcz@gmail.com&quot;
  CMD [&quot;dir&quot;]
  </code></pre>
  <p>However after building this, when I run it I get this output:</p>
  <pre><code>docker: Error response from daemon: container 9c7f1897ee59019488d06a53be2ebfac9bfaefa108982ac1004d24a4f53a4840 encountered an error during hcsshim::System::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: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF7B627A40B: (caller: 00007FF7B6235C8B) Exception(2) tid(38c) 80070002 The system cannot find the file specified.
      CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess]
   Provider: 00000000-0000-0000-0000-000000000000]
  </code></pre>
  <p>I assumed perhaps I needed to install commands like <code>pwd</code> but if this is true I can't find any documentation on how to do so. If I switch to <code>dir</code> as my command the error is the same.</p>
  <p>Strangely enough if I modify the dockerfile to this then it works and I do see the ping output with no errors:</p>
  <pre><code>FROM mcr.microsoft.com/windows:20H2
  LABEL maintainer=&quot;rmilejcz@gmail.com&quot;
  RUN dism.exe /online /enable-feature /all /featurename:iis-webserver /NoRestart
  CMD [ &quot;ping&quot;, &quot;localhost&quot;, &quot;-t&quot; ]
  </code></pre>
  <p>This leads me to believe I need to enable more features somehow</p>