title: How restart a stopped docker container
body: <p>I launch a docker container from an image with the following command:</p>
  
  <pre><code>$ docker run -d myimage /bin/bash -c "mycommand"
  </code></pre>
  
  <p>When <code>"mycommand"</code> is finished, the container is stopped (I suppose it is stopped), but it is not deleted, because I can see it with this command:</p>
  
  <pre><code>$ docker ps -a
  </code></pre>
  
  <p>Is there any way to <code>restart</code> this container with the same parameters and keep data generated by <code>mycommand</code>?</p>