title: Docker - how to run mongodb process as daemon
body: <p>I am running docker on windows with the <code>docker-machine</code> and <code>Docker Toolbox</code> installation package. </p>
  
  <p>Boot2Docker is now deprecated, btw. </p>
  
  <p>The docs here: <a href="https://docs.docker.com/examples/mongodb/" rel="nofollow">https://docs.docker.com/examples/mongodb/</a> told me to connect to the running mongodb container like:</p>
  
  <pre><code>$ mongo --port 27017 --host 192.168.99.100
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>$ mongo --host 192.168.99.100
  sh: mongo: command not found
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT 1:</strong> I run the container like this:</p>
  
  <pre><code>$ docker run -p 27017:27017 --name mongodb -d myname/repo
  </code></pre>