Relates to moby/moby#35043
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
| ... | ... |
@@ -7,6 +7,17 @@ import ( |
| 7 | 7 |
|
| 8 | 8 |
const userChain = "DOCKER-USER" |
| 9 | 9 |
|
| 10 |
+func (c *controller) arrangeUserFilterRule() {
|
|
| 11 |
+ c.Lock() |
|
| 12 |
+ arrangeUserFilterRule() |
|
| 13 |
+ c.Unlock() |
|
| 14 |
+ iptables.OnReloaded(func() {
|
|
| 15 |
+ c.Lock() |
|
| 16 |
+ arrangeUserFilterRule() |
|
| 17 |
+ c.Unlock() |
|
| 18 |
+ }) |
|
| 19 |
+} |
|
| 20 |
+ |
|
| 10 | 21 |
// This chain allow users to configure firewall policies in a way that persists |
| 11 | 22 |
// docker operations/restarts. Docker will not delete or modify any pre-existing |
| 12 | 23 |
// rules from the DOCKER-USER filter chain. |