title: Error response from daemon: Container CONTAINER_NAME is not running
body: <p>I have a docker image dajobe/hbase and its been built from Ubuntu. I created a container of this image and named it hb.</p>
  
  <pre><code>$ docker run -d --name hb dajobe/hbase
  e1f68ff8b3b6c5e474426e2566f8c087d6a785fc5eeb58cd2aeb86176068651d
  </code></pre>
  
  <p>I then started the /bin/bash on hb, and checked for the availability of the vi editor.</p>
  
  <pre><code>$ docker exec -it hb /bin/bash
  root@e1f68ff8b3b6:/# vi
  bash: vi: command not found
  </code></pre>
  
  <p>I then installed vi editor using apt-get</p>
  
  <pre><code># apt-get install vim
  Reading package lists...
  DoneBuilding dependency tree
  Reading state information... Done
  .....
  .....
  </code></pre>
  
  <p>I wanted to commit the changes so that vi editor could persist.</p>
  
  <pre><code>$ docker commit hb dajobe/hbase
  1be196188efc5a52562dc8ee1b63d0fd560ea163c49331c10dc435848d75ef64
  </code></pre>
  
  <p>then, when i again started dajobe/hbase, it automatically stopped.</p>
  
  <pre><code>$ docker run -d --name hb dajobe/hbase
  c3e7b9f48077ef854efc6f9bab5e85986e265c98de5423bece0000c973206c38
  
  $ docker exec -it hb /bin/bash
  FATA[0000] Error response from daemon: Container hb is not running
  </code></pre>
  
  <p>Why is the container not running ?</p>
  
  <pre><code>$ docker ps -a
  CONTAINER ID        IMAGE              COMMAND          CREATED                   STATUS                 PORTS      NAMES
  c3e7b9f48077 dajobe/hbase:latest "/opt/hbase-server"  11 secs ago         Exited (0) 8 secs ago                      hb
  </code></pre>
  
  <p>Why is the status "Exited" ? Before committing, this wasn't the case, the status was "Up".</p>