Option network_mode: host in docker compose file not working as expected

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 :slight_smile:

  • The host networking 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.