title: trouble debugging error with exit code 3221225781 (missing libraries) in windows docker container
body: <p>i'm trying to run a docker container on Windows 10 which should execute a windows executable (myprogram.exe). Below you find my dockerfile:</p>
  
  <pre><code>FROM microsoft/windowsservercore
  COPY mydir/myprogram.exe /mydir/
  CMD ["/mydir/myprogram.exe","someparameter"]
  </code></pre>
  
  <p>So i build the image with:
   <code>docker image build --tag myimage .</code>
  and run the container with:
   <code>docker run myimage</code>
  Unfortunately if I check the status of the container with:
   <code>docker ps -a</code> I can see that the container has exited with </p>
  
  <blockquote>
    <p>exit code 3221225781</p>
  </blockquote>
  
  <p>, which seems to point to a missing dll. 
  To debug the problem I run the command:
   <code>docker run -it --name debug microsoft/windowsservercore cmd</code>, stopped the container and copied the windows executable in the container file system :
  <code>docker cp myprogram.exe debug:c:/myprogram.exe</code>
  Now I start the container again using <code>docker start -i debug</code> and enter <code>myprogram.exe myparameter</code>. Unfortunately the program exits immediately (usually it runs about 30 sec) without any output, error code ...
  My only explanation for this behavior is that if some cmd program is missing some dll's the corresponding error message is not included in the STDERR but rather in a message dialog. Apparently docker doesn't support this feature???
  So what is the best was to solve this problem. Using dependency walker to go through all dll's needed is possible but would take some time and I'm looking for some more elegant solution.</p>