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:
parent
5e5dc809cc
commit
f6868a007f
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue