Skip to content

Commit dbc253f

Browse files
committed
Make sure iptables chains are recreated on firewall reload
Signed-off-by: Alessandro Boch <aboch@docker.com>
1 parent 58748d7 commit dbc253f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/bridge/bridge.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ func (d *driver) configure(option map[string]interface{}) error {
384384
if err != nil {
385385
return err
386386
}
387+
// Make sure on firewall reload, first thing being re-played is chains creation
388+
iptables.OnReloaded(func() { logrus.Debugf("Recreating iptables chains on firewall reload"); setupIPChains(config) })
387389
}
388390

389391
d.Lock()

0 commit comments

Comments
 (0)