title: Can't connect to MySQL inside Docker container with SequelPro
body: <p>How can I connect to MySQL inside my docker container that is hosted locally on my mac? I'm trying to connect via SequelPro and can't even get test connection to work.</p>
  
  <p>Here's my Docker command:</p>
  
  <pre><code>docker run -it --name rodneys_mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=demo mysql
  </code></pre>
  
  <p>I can connect via command line:</p>
  
  <pre><code>docker exec -it rodneys_mysql mysql -uroot -p
  </code></pre>
  
  <p>I know how to get the ip address of the docker container:</p>
  
  <pre><code>docker inspect &lt;container id&gt; | grep "IPAddress"
  </code></pre>
  
  <p>But I can't connect via SequelPro from my host machine.</p>