-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
How do I grant the same network access to the Mac VM as the underlying Arch Linux Host #177
Comments
See this #72 In bridged networking you need to start a bridge inside the container /dev/run stuff. We use user mode networking and forward ports to the machine because otherwise the guest has the same IP as the container and won't be able to SSH in. |
Also, vmxnet3 is on by default now, do a speed test inside the container. To open more ports, see line 233 https://github.com/sickcodes/Docker-OSX/blob/master/Dockerfile |
Thanks for the speedy response @sickcodes, I removed the This is how I created the container:
However the Arch Linux VM doesn't have the same network access as my host. To access the Mac VM, I SSH-ed into localhost via port 50922:
And obviously I can't curl Homebrew in. I read about bridged vs user mode networking and don't have clarity around the exact fit for me. I'm completely new to containerization, so I apologize in advance if I'm all over the place. What I need is a way to create the Docker container from my CentOS host and let the Mac VM have the same network access as my host. When I use |
Maybe same DNS problem.
Originally posted by @shifujun in #122 (comment) |
Do you have internet inside any Docker container? VPN on? This sounds like a local issue. Run
|
I'm on a corporate network and don't have internet access from my host machine but do have intranet access. At this moment, I'd merely like the Mac VM to the have the same network access as the host machine, which I'm checking by pinging the artifactory.
|
You might not get far without internet unless you use the auto image. Honestly, without knowing much about your networking setup, probably just need to route docker0 thru your intranet interface. Do it using iptables or ip. As much as I'd like to help, I'd find out: "how to route Docker through VPN/Intranet/bridge" |
Absolutely, thanks for the pointers @sickcodes! |
As it turns out, I had network access from the Mac VM all along when I used
|
When I docker run using the following command:
I can ensure that the Arch Linux container has the same network access as my host machine. However, the Mac VM does not share the same network access. How can I resolve this? I verified that ipv4 forward is already set to 1:
The text was updated successfully, but these errors were encountered: