I have 3 network interfaces: docker0
, eth0
and eth0:0
(alias).
auto eth0
iface eth0 inet static
address 1.2.3.4
netmask 255.255.255.0
network 1.2.3.0
broadcast 1.2.3.255
gateway 1.2.3.254
auto eth0:0
iface eth0:0 inet static
address 5.6.7.8
netmask 255.255.255.255
broadcast 5.6.7.8
docker0
is the bridge auto created by docker.
What's the easiest way to make Docker and all its containers use the outbound IP 5.6.7.8 instead of 1.2.3.4?