Is it possible to make a Docker Network (overlay or bridge) use a specific network interface?

Hi,

My Docker Swarm host has multiple network interfaces (eth0, eth1). I’d like for some of my containers to use eth0 and some to use eth1. I might even have some containers which use both. (Listen on one interface, make requests on another)

I don’t want to use host networking, I want to use (ideally) overlay. I’m wondering how I can achieve this.

Thanks,
Josh

1 Like