title: Docker 1.9.1 - ERROR 2005 (HY000): Unknown MySQL server host
body: <p>We have a two docker setup, one is running a django app and the other running MySQL. Earlier we were using docker 1.8.3 and everything was working fine, after upgrading to 1.9.1 we are facing this issue.</p>
  
  <p>We are creating a MySQL docker:</p>
  
  <pre><code>docker run --name &lt;mysql docker name&gt; -e MYSQL_ROOT_PASSWORD={} -d mysql:5.5.44
  </code></pre>
  
  <p>Next we are running a batchfile, which is nothing but creating a DB, granting access to the user</p>
  
  <pre><code>docker run -it --rm -v &lt;setup_file&gt;:/mnt mysql:5.5.44 sh -c 'exec mysql -h"&lt;db server name&gt;" -P"3306" -uroot -p"&lt;password&gt;" &lt; /mnt/batchfile'
  </code></pre>
  
  <p>Next we are creating the django docker</p>
  
  <pre><code>docker run --name &lt;django server name&gt; --link &lt;db server name&gt; -it --rm ubuntu /bin/bash
  </code></pre>
  
  <p>When the django docker comes up we get the error message</p>
  
  <pre><code>ERROR 2005 (HY000): Unknown MySQL server host &lt;DB server&gt; (0)
  </code></pre>
  
  <p>Is there any additional parameter that we need to send for docker 1.9.1?</p>