My system
Linux in28-051 3.16.0-4-amd64
But the nat table is disabled in our company machine. So when I run docker -d, the problem is
root@XXXXX:~
INFO[0000] +job init_networkdriver()
INFO[0000] +job serveapi(unix:///var/run/docker.sock)
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
Unable to enable network bridge NAT: iptables failed: iptables --wait -t nat -I POSTROUTING -s 172.17.42.1/16 ! -o docker0 -j MASQUERADE: iptables v1.4.21: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3)
INFO[0000] -job init_networkdriver() = ERR (1)
FATA[0000] Shutting down daemon due to errors: (exit status 3)
So, is there a way to run docker without a nat table?
Update: I know that I can run docker normally when I turn on the nat module, but the question is that nat has a bad effect on the network bandwidth of our computers. So I want to know in some way I can use docker without the nat module? Or anyone can explain why docker should use the nat module.
source
share