title: 2 docker containers run in 1 container
body: <p>i try to start two detached containers.</p>
  
  <p>first a MySql</p>
  
  <pre><code>docker run -td --name mysql -p 3306:3306 -e MYSQL_PASS="admin" tutum/mysql
  </code></pre>
  
  <p>the i try to start a self built container for apache, typo3</p>
  
  <pre><code>docker run -td --name typo -p 80:80 --link mysql:mysql thomasm/typo3-45
  </code></pre>
  
  <p>i would now expect that the two containers show up in docker ps</p>
  
  <pre><code>$ docker ps
  CONTAINER ID        IMAGE                COMMAND             CREATED             STATUS              PORTS                    NAMES
  96607b9ee0f9        tutum/mysql:latest   "/run.sh"           19 minutes ago      Up 19 minutes       0.0.0.0:3306-&gt;3306/tcp   mysql,typo/mysql
  </code></pre>
  
  <p>but both seem to be in this one container id (watch the NAMES column).</p>
  
  <p>docker ps -a now shows that the "typo" container has exited</p>
  
  <pre><code>$ docker ps -a
  CONTAINER ID        IMAGE                           COMMAND                CREATED             STATUS                          PORTS                    NAMES
  4d5ab7351d49        thomasm/typo3-45:latest         "/start.sh"            8 minutes ago       Exited (0) 8 minutes ago                                 typo          
  </code></pre>
  
  <p>I'm a bit confused. Why does the typo name show up in the names column of the mysql container. And why does the typo container exit? I don't see any error messages. Non detached, with bash the typo container works...</p>
  
  <p>output from docker logs</p>
  
  <pre><code>$ docker logs typo 
  * Starting web server apache2                                                  
  AH00558:      apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.16. 
  Set the 'ServerName' directive globally to suppress this message
  </code></pre>
  
  <p>* </p>