Can't use 127.0.0.1 to connect mysql server docker container, but can use IP?
<p>In my personal PC, there's a docker mysql container binding with port 3306. It works well. 
I can connect the mysql server in this container over another PC. </p>

<pre><code>sh$ mysql -hxxx.xxx.xxx.110 -uroot -p
</code></pre>

<p>In the host PC, I can connect the container by this way:</p>

<pre><code>sh$ mysql -hxxx.xxx.xxx.110 -uroot -p
</code></pre>

<p>But when I try to connect the container to 127.0.0.1, it fails:</p>

<pre><code>sh$ mysql -uroot -p
</code></pre>

<p>Known:</p>

<ol>
<li><p>In the container, I can connect the mysql server by:</p>

<pre><code>   sh$ mysql -uroot -p
</code></pre></li>
<li><p>there's nothing wrong with the password</p></li>
<li><p>Meanwhile, I can connect 127.0.0.1:6376 over the host to the redis container....</p></li>
</ol>