1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Make sure iptables chains are recreated on firewall reload

Signed-off-by: Alessandro Boch <aboch@docker.com>
This commit is contained in:
Alessandro Boch 2016-02-11 10:26:54 -08:00
parent 5e5dc809cc
commit f6868a007f

View file

@ -384,6 +384,8 @@ func (d *driver) configure(option map[string]interface{}) error {
if err != nil {
return err
}
// Make sure on firewall reload, first thing being re-played is chains creation
iptables.OnReloaded(func() { logrus.Debugf("Recreating iptables chains on firewall reload"); setupIPChains(config) })
}
d.Lock()