title: How to open MySQL database from docker container in my local HeidiSQL
body: <p>I ran centos/mysql-57-centos7 container with </p>
  
  <pre><code>docker run -e MYSQL_ROOT_PASSWORD=root centos/mysql-57-centos7
  </code></pre>
  
  <p>and it works well </p>
  
  <pre><code>ae0b9060f99c        centos/mysql-57-centos7   "container-entrypoin…"   16 minutes ago      Up 16 minutes       3306/tcp            angry_blackwell
  </code></pre>
  
  <p>but I don`t know how to connect it with my HeidiSQL, i saw the container ip with</p>
  
  <pre><code>docker inspect -f &lt;ContainerID&gt;  //172.17.0.2
  </code></pre>
  
  <p>and I tried to open with the following login: </p>
  
  <p>user: root, pass: root, hostname/ip: 172.17.0.2 port: 3306 but I get: <strong>Can`t connect to MySQL server on '172.17.0.2 (10060)'</strong></p>