Note everyone having troubles that “network: host” is only supported by Docker on Linux. If you are running Docker for Mac or Docker Desktop in Windows you will never be able to “join” the host network in a native way.
See Networking using the host network | Docker Docs ![]()
- The
hostnetworking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.