title: How to run an existing stopped container and get inside the bash?
body: <p>I am a newbie to Docker, and I know that in order to run a container I can use the following command:</p>
  
  <pre><code>docker run -it --name custom-container-name --hostname custom-hostname image-name bash
  </code></pre>
  
  <p>The previous command creates a container named <code>custom-container-name</code> which hostname is <code>custom-hostname</code>, and it uses the image <code>image-name</code>. I know that the <code>-it</code> flag gives me access to the <code>bash</code>. (please correct me if I am wrong)</p>
  
  <p>Now, I have stopped this container, but I want use it again, so <strong>what is the command I should use to open this container again with its bash</strong>, as when I run the <code>docker run ...</code> command the first time it was created.</p>