title: PhpMyadmin on Docker/MySQL on host
body: <p>I'm trying to install/configure phpmyadmin using docker inside Ubuntu 14.04. I started like this:</p>
  
  <pre><code>docker run --name myadmin -d -e PMA_HOST=localhost -e PMA_PORT=3306 -p 8282:80 phpmyadmin/phpmyadmin
  </code></pre>
  
  <p>When I try to login I get the following error: </p>
  
  <pre><code> #2002 - Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 &amp;quot;No such file or directory&amp;quot;) &amp;mdash; The server is not responding (or the local server's socket is not correctly configured).
  
   mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 &amp;quot;No such file or directory&amp;quot;)
  </code></pre>
  
  <p>The MySQL server is installed directly in Ubuntu not in docker.</p>
  
  <p>Any ideas?</p>