Open jkuruzovich opened 5 years ago
Hi @jkuruzovich Officially, the docker community simply says that --net=host
is unsupported on Mac, it's considered a Linux only flag. See this issue - https://github.com/docker/for-mac/issues/2716
Unofficially, the --net=host
extension does not work on Mac the same way it does on Linux because on Mac, docker actually runs inside another VM running on your laptop. If you can get console access inside the VM then you should be able to access your ports. Alternatively, if you can identify the IP of the VM docker runs inside on Mac, you can try using that IP to access ports after a correct -P
or --expose
flag is passed to the docker cli.
When running locally on the mac the
--net=host
extension does not work. I've submitted the test but it didn't seem to work.docker run --net=host -it $IMAGE_NAME /home/crowdai/run.sh
I've tried to share the ports but that method didn't work.