nova-docker containers can't ping outside

asked 2016-02-18 08:43:10 -0600

raimonbosch gravatar image

updated 2016-02-18 08:55:27 -0600


I am using nova-docker to create containers throught openstack but new containers don't get any connectivity. I think it is because the gateway it's wrong (it uses .1 instead of the ip of the compute node).

Destination - Gateway - Genmask - Flags Metric Ref Use - Iface - - - UG 0 0 0 - nsf6c6e5bc-e9 - - - U 0 0 0 - nsf6c6e5bc-e9

In this case the gateway that holds connectivity is That's the one that it is assigned by Openstack on eth0 when I fire up regular virtual machines. What is going on nova-docker that generates this wrong gateway? Any ideas about how to solve this?

edit retag flag offensive close merge delete


I could solve it by running:

sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE


but it's still the wrong gateway. Docker containers should get connectivity through its compute node (in this case

raimonbosch gravatar imageraimonbosch ( 2016-02-18 09:03:25 -0600 )edit