I’m wondering the same thing. I’d like to have my container access a debugger running on the host machine.
I notice that the container is on the 172.17.0.0 network and has an IP of 172.17.0.2. I can ping 172.17.0.1 which I assume is the host machine but can’t seem to access any ports on the host.
Probably something we need to do with docker-compose configuration. I to am coming from the boot2docker/Kitematic world.
I could be wrong but this might be mentioned in known limitations on the doc. Something sbout Mac networking which might have been this. Don’t remember and can’t look it up right now
I am having the same issue with Jenkins + Docker in Mac
At the docs, they say that is possible to share the docker.sock, but doesn’t works well
Namespaces
Much of the OS X file system that is accessible to the user is also available to containers using the -v bind mount syntax. You can share files in /Users, /Volumes, /private, and /tmp directly. For the Beta only, the rest of the user-accessible file system is mounted under /Mac. All other paths used in -v bind mounts are sourced from the Moby Linux VM running the Docker containers, so arguments such as -v /var/run/docker.sock:/var/run/docker.sock should work as expected.