title: How to connect to local MySQL server through Docker?
body: <p>This is more a general question for how to connect to local services through Docker. There's a similar question in a Github issue <a href="https://github.com/docker/docker/issues/1143" rel="noreferrer">here</a> that doesn't seem to have any resolution. What I'm really looking for is to be able to do development locally against my local development MySQL server, then once I'm ready to deploy, to test locally against a newly created deploy candidate docker image.</p>
  
  <p>Ideally, both get settings from the same place as well, so I could put <code>mysql_server: host_ip</code>. This seems like a typical use case. Is anything like this currently possible?</p>
  
  <p>I'm using Boot2Docker specifically with MySQL server running on my host mac's OS X Yosemite NOT in a container. Would be cool to have a more general answer for future readers though.</p>