File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,11 @@ func main() {
104
104
Usage : "docker daemon executes in debug mode" ,
105
105
EnvVar : "PLUGIN_DEBUG,DOCKER_LAUNCH_DEBUG" ,
106
106
},
107
+ cli.BoolFlag {
108
+ Name : "daemon.iptables" ,
109
+ Usage : "docker daemon disable addition of iptables rules if set to true. Default false" ,
110
+ EnvVar : "PLUGIN_IPTABLES_OFF" ,
111
+ },
107
112
cli.BoolFlag {
108
113
Name : "daemon.off" ,
109
114
Usage : "don't start the docker daemon" ,
@@ -321,6 +326,7 @@ func run(c *cli.Context) error {
321
326
Insecure : c .Bool ("daemon.insecure" ),
322
327
Disabled : c .Bool ("daemon.off" ),
323
328
IPv6 : c .Bool ("daemon.ipv6" ),
329
+ IPTablesOff : c .Bool ("daemon.iptables" ),
324
330
Debug : c .Bool ("daemon.debug" ),
325
331
Bip : c .String ("daemon.bip" ),
326
332
DNS : c .StringSlice ("daemon.dns" ),
Original file line number Diff line number Diff line change 23
23
Debug bool // Docker daemon started in debug mode
24
24
Bip string // Docker daemon network bridge IP address
25
25
DNS []string // Docker daemon dns server
26
+ IPTablesOff bool // docker daemon enable/disable addition of iptables rules
26
27
DNSSearch []string // Docker daemon dns search domain
27
28
MTU string // Docker daemon mtu setting
28
29
IPv6 bool // Docker daemon IPv6 networking
@@ -482,6 +483,9 @@ func commandDaemon(daemon Daemon) *exec.Cmd {
482
483
if daemon .Experimental {
483
484
args = append (args , "--experimental" )
484
485
}
486
+ if daemon .IPTablesOff {
487
+ args = append (args , "--iptables=false" )
488
+ }
485
489
return exec .Command (dockerdExe , args ... )
486
490
}
487
491
You can’t perform that action at this time.
0 commit comments