We are trying to setup a system with four instances of the same container, but it’s vital that all network traffic (incoming AND outgoing) for each container is restricted to a specific NIC on the host (container_1->eno1 container_2->eno2, etc…). I did get the containers to bind to the IP addresses (in our docker-compose.yml) with
But that only affected incoming traffic, all outbound traffic for all containers was primarily routed through eno1, which was unacceptable. I know that we can do this with VMs, but Docker would play much nicer with our config management. Does anyone know how to do this with Docker, and if so, how we would go about doing that?
OS: Debian Buster (10)