How to deal with state "Exit 0" in Docker
<p>I have build a Docker image and afterwards run a container using Docker Compose. The following command will do the job for me:</p>

<pre><code>docker-compose up -d
</code></pre>

<p>I have restarted the PC and now I want to start the previous container that I've created before. So I have tried the following command:</p>

<pre><code>$ docker-compose start 
Starting php-apache ... done
</code></pre>

<p>Apparently it works but it doesn't as per the output for the following command:</p>

<pre><code>$ docker-compose ps
          Name                         Command               State    Ports 
---------------------------------------------------------------------------
php55devwork_php-apache_1   /bin/sh -c bash -C '/usr/l ...   Exit 0        
</code></pre>

<p>For sure something is wrong and I am trying to find out what. </p>

<ul>
<li>How do I find why the command is failing? </li>
<li>Is there any place where I could see a log file or something that help me to identify and fix the error? </li>
</ul>

<p><a href="https://github.com/reypm/php55-dev" rel="noreferrer">Here is</a> the repository if you want to give it a try.</p>

<p><strong>Update</strong></p>

<p>If I remove the container: <code>docker rm &lt;container-id&gt;</code> and recreate it by running <code>docker-compose up -d --build</code> it works again.</p>

<p><strong>Update #1</strong></p>

<p>I am not able to see such weird characters:</p>

<p><a href="https://i.stack.imgur.com/lPWzZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lPWzZ.png" alt="enter image description here"></a></p>