title: Docker container will automatically stop after "docker run -d"
body: <p>According to tutorial I read so far, use "<code>docker run -d</code>" will start a container from image, and the container will run in background. This is how it looks like, we can see we already have container id.</p>
  
  <pre><code>root@docker:/home/root# docker run -d centos
  605e3928cdddb844526bab691af51d0c9262e0a1fc3d41de3f59be1a58e1bd1d
  </code></pre>
  
  <p>But if I ran "<strong><code>docker ps</code></strong>", nothing was returned.</p>
  
  <p>So I tried "<strong><code>docker ps -a</code></strong>", I can see container already exited:</p>
  
  <pre><code>root@docker:/home/root# docker ps -a
  CONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS                         PORTS               NAMES
  605e3928cddd        centos:latest         "/bin/bash"         31 minutes ago      Exited (0) 31 minutes ago                          kickass_swartz
  </code></pre>
  
  <p>Anything I did wrong? How can I troubleshoot this issue?</p>