According to the docker documentation here
https://docs.docker.com/network/host/
The host networking driver only works on Linux hosts, and is not supported on Docker for Mac, Docker for Windows, or Docker EE for Windows Server.
On Mac what alternatives do people use?
My scenario
- I want to run a docker container that'll host a micro-service
- The micro-service has dependencies upon databases that I'm also running via docker
- I thought I'd be able to use --net=host on Mac when running the micro-service
- But the micro-service port is not exposed
- I can override the db addresses (they default to localhost) on the microservice.
- But that involves robust --env usage
What's the simplest / most elegant solution?