Docker Community Forums

Share and learn in the Docker community.

How to access Mac host stack when using docker for mac?


(Gaurav Kumar) #1

I’m using Docker for Mac Version 1.11.2-beta15 (build: 9168).
When I run container like like this-
docker run --net=host ubuntu /bin/bash

I expect to have access to Mac’s networking stack but I don’t observe it. I think what I am seeing is xhyve VM networking stack.

So my question is if I’ve a port listening on my Mac and I want to access it from within a container launched via Docker for Mac how do I go about it?

Under the advanced settings I don’t see any option to configure networking.