I have just attempted to move an app into a docker container using boot2docker on OS X.
This app requires to connect to a mysql server running on the host system (not in the app's container or in another container).
Now I'm struggling with configuring the mysql hostname within the "dockerized" app: So far it just connected to localhost, but this doesn't work anymore because this no longer points to the host mysql is actually running on.
As a quick workaround, I have added my workstations private IP (10.0.0.X in my case) to the app's mysql connection config.
However I wonder: Is there an automatic way to find the host's private IP address from within a docker container?