Enabling network=host on MacOS

MacOS Sequoia 15.7.2
Docker 4.50.0.

I’m trying to use dhcpd inside a container, which needs to listen for broadcast packets, which apparently requires using network=host. I thought I saw some posts that said this could be enabled as a feature in development on MacOS because of Apple’s new virtualization framework, but I can’t find those posts now and can’t get it to work.

For example, this thread mentions enabling network=host on MacOS: Mac host network driver beta feature

It had and has nothing to do with the virtualization methods, but it is not a beta feature anymore, so you can find it in Settings / Resources / Network.

https://docs.docker.com/engine/network/drivers/host/#docker-desktop

Note that it is not a real host network, as it would be impossible when the containers are running in a virtual machine.

Because of the above fact, thre are limitations mentioned in the documentation so I’m not sure about the broadcast

Thanks. I’m falling back to Plan B – install dhcpd natively on the Mac
using homebrew.

–Randall

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.