How to restart the stopped docker/whalesay container?
<p>As Docker for Mac getting started document instructed.</p>

<p><code>docker run docker/whalesay cowsay boo</code></p>

<p>Every time, I run this, a new container is created, run and stopped.</p>

<pre><code>CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                         PORTS                         NAMES


0d96e4bd9c14        docker/whalesay     "cowsay boo boo"         11 days ago         Exited (0) 5 minutes ago                                     high_archimedes
3a079559382e        docker/whalesay     "cowsay boo"             11 days ago         Exited (0) 26 minutes ago                                    boring_ritchie
</code></pre>

<p>How could I not create a new container of the docker/whalesay any more but restart existing stopped container of docker/whalesay and get the same result as</p>

<p><code>docker run docker/whalesay cowsay boo</code></p>

<p>?</p>

<p>I tried</p>

<pre><code>docker start 0d96e4bd9c14
</code></pre>

<p>the result only shows </p>

<pre><code>0d96e4bd9c14
</code></pre>

<p>Not the whale image as whalesay would show.</p>

<p>Thanks!</p>

<hr>

<h2>Answer:</h2>

<p>Based on the answer by Rico</p>

<p>"The container starts the second time but the difference is that you don't see the stdout as a default with start"</p>

<pre><code>docker start -a 0d96e4bd9c14
</code></pre>

<p>add -a, then I can see the stdout result.</p>