Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing locally on mac. #4

Open
jkuruzovich opened this issue Nov 22, 2018 · 1 comment
Open

Testing locally on mac. #4

jkuruzovich opened this issue Nov 22, 2018 · 1 comment

Comments

@jkuruzovich
Copy link

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.

@ffledgling
Copy link

ffledgling commented Nov 23, 2018

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 - docker/for-mac#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants