Score:0

How to route docker container traffic to another interface

cm flag

I have a host with multiple interfaces (eth0/eth1). With eth0 and eth1 both have internet access. The host have its default route set to eth0.

I have several docker containers that I want them to send their traffic out via eth1. But because the default route on the host, their traffic all NAT'd to eth0.

How can I change the route such that all traffic originated from docker containers got routed (and NAT'd) to eth1?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.