title: Docker container keeps stopping after 'docker start'
body: <p>I'm fairly new to Docker. I have a long <code>Dockerfile</code> that I inherited from a previous developer, which has many errors and I'm trying to get it back to a working point. I commented out most of the file except for just the first line:</p>
  
  <pre><code>FROM ubuntu:14.04
  </code></pre>
  
  <p>I did the following:</p>
  
  <ol>
  <li><code>docker build -t pm .</code> to build the image - this works because I can see the image when I execute <code>docker images</code></li>
  <li><code>docker run &lt;image-id&gt;</code> returns without error or any message. Now I'm expecting the container to be created from the image and started. But when I do a <code>docker ps -a</code> it shows the container exited:</li>
  </ol>
  
  <blockquote>
  <pre><code>CONTAINER ID        IMAGE               COMMAND             CREATED    STATUS                          PORTS               NAMES 
  </code></pre>
    
    <p>b05f9727f516     f216cfb59484        "/bin/bash"         About a
    minute ago   Exited (0) About a minute ago<br>
    lucid_shirley</p>
  </blockquote>
  
  <p>Not sure why can't I get a running container and why does it keep stopping after the <code>docker run</code> command.</p>
  
  <ol start="3">
  <li>executing <code>docker logs &lt;container_id&gt;</code> displays nothing - it just returns without any output.</li>
  </ol>