title: Get command used to start a Docker container
body: <p>I have a Docker container running, and I want to create another one similar to it. How can I find out what command was used to start the container? There's <code>docker inspect</code>, but I'd have to go through and look at each of the config options one by one.</p>
  
  <p>Edit: I want to get the full command used to start the container, including environment variables, links, volumes, etc. For example:</p>
  
  <pre><code>docker run -d --name foo -v /bar:/bar --link baz:baz -e DEBUG=True image bash
  </code></pre>