Hacker News new | ask | show | jobs
by lub 1945 days ago
Did you try this?

  networks:
    - host
https://docs.docker.com/network/host/
1 comments

Maybe it has changed since I built it, but I wasn't able to get this working with Swarm services. I had to convert them to docker-compose to make it work. The docs suggest it should work with Swarm mode though, so maybe I need to try again.

Ideally I'd like to give each service its own IP on the network, which was possible with how I had k8s setup.