-
Notifications
You must be signed in to change notification settings - Fork 35
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
Support "bridged" network mode #41
Comments
Hi @sheerun Adding "bridged" mode as an additional option sounds good, and we're open for Pull-Requests allowing this. But honestly, I'm not sure how it could lay on the Docker Machine workflow. At the moment, I recommend you to add a second network adapter with a type "Bridge", because reconfiguring of the existing one will brake the Docker Machine driver - it won't be able to connect to the VM. |
+1 |
Adding a second adapter works only if you access your containers from the same network configured in the bridge interface. I don't find a way to remove persistently the "wrong" default route to make my setup working. |
+1 Glad I found this issue! Workaround: Voila! :) now I can run homebridge in docker on mac! (until DHCP lease changes on bridged network, or parallels decides to overwrite the dhcp leases file) EDIT: lock the DHCP leases file if you don't have/intend to create any new VMs with shared network interfaces. Alternative more permanent workaround I haven't tried (and assuming no other VMs use shared networking) could be to set a DHCP reservation in the bridged network DHCP server, then modify Parallels "Shared" network DHCP prefs to hand out only that IP address. Then you'd theoretically only need to change the network interface to bridged, and presumably Parallels wouldn't overwrite the DHCP leases file. |
Hi all, For those of you, who still need that, I would recommend using the workaround posted by @HunterDG in the comment above. |
FYI - not explicitly related to this issue, but relevant to my need at the time (homebridge/other containers that require bridged (net=host) don't work in Docker Desktop)... There is now a homebridge-vm-image that negates the need for docker-machine. |
Hey
This driver for now uses
/Library/Preferences/Parallels/parallels_dhcp_leases
that shows ip assigned by parallels' dhcp. I changed network mode of contained to "bridge" so my containers are exposed in local network, butdocker-machine ip
still shows old ip address fromparallels_dhcp_leases
.Could you implement support for bridged mode, please?
The text was updated successfully, but these errors were encountered: