title: Installing mongoDB as a docker image on Windows
body: <p>I am trying to install mongoDB as a docker image on a Windows 10 machine. So far so good this is the process I used (which worked on another machine with the same configuration)</p>
  
  <pre><code>docker pull mongo //download the mongo image
  docker run -it -d -p 21017:21017 --name mongodb mongo //run it
  docker ps //Its right there!
  docker exec -it mongodb bash //get the shell command
  </code></pre>
  
  <p>This is the error I get thrown:</p>
  
  <pre><code>container e65c8b920af38b4f93214c81a89bcb2337c95ae27fe84efcd38dae0df3b635fe encountered an error during CreateProcess: failure in a Windows system call: System could not find the file. (0x2)
  
  [Event Detail:  Provider: 00000000-0000-0000-0000-000000000000] extra info: {"CommandLine":"bash","WorkingDirectory":"/","Environment":{"MONGO_DOWNLOAD_SHA256":"c4574977ea850798329bfdb6e912145f683afd3b28fe363abdf51ead33446a94","MONGO_DOWNLOAD_URL":"https://downloads.mongodb.org/win32/mongodb-win32-x86_64-2012plus-4.2.2-signed.msi","MONGO_VERSION":"4.2.2"},"EmulateConsole":true,"CreateStdInPipe":true,"CreateStdOutPipe":true,"ConsoleSize":[0,0]}
  </code></pre>
  
  <p>Things I have tried:</p>
  
  <ul>
  <li>Execute as administrator.</li>
  <li>Remove it and repeat <code>docker rm mongodb</code> and back to the first step</li>
  <li>Another pull (It says its up to date)</li>
  </ul>
  
  <p>None of this worked, so I am missing something big or it's bug. I have read another posts but those where related to build apps and C# which is not what I want.</p>
  
  <p>Notes:
  - OS: Windows 10 pro
  - I'm new to this and learning alone</p>
  
  <p>Thanks for your time</p>
  
  <p>EDIT:</p>
  
  <p><a href="https://i.stack.imgur.com/WofXc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WofXc.png" alt="Mongo Image"></a></p>