Tag Info

New answers tagged


You might have to look more on the iptables setup also. Docker masquerades all traffic originating from the container subnet, say, to If you run iptables -L -n -t nat, you can see the POSTROUTING chain under nat table which does this - Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE ...


The masquerade isn't from but rather -A POSTROUTING -s ! -o docker0 -j MASQUERADE Which means this rule won't work right. ip rule add from table docker Try instead ip rule add from table docker

Top 50 recent answers are included