title: How to gracefully shut down monogodb 0.8 running in docker
body: <p>I am starting mongodb via the ENTRYPOINT config in a docker file.
  It works fine. However, when I execute:</p>
  
  <pre><code>docker stop &lt;containerid&gt;
  </code></pre>
  
  <p>it seems to be sending a SIGTERM to the process. Which means the <code>mongod.lock</code> file is not cleared. How can I gracefully shutdown a running docker container so that the right signals are sent to the process running inside docker ? </p>