diff --git a/main.go b/main.go index f8fe05b..a901757 100644 --- a/main.go +++ b/main.go @@ -75,6 +75,11 @@ func main() { Usage: "docker daemon IPv6 networking", EnvVar: "PLUGIN_IPV6", }, + cli.BoolFlag{ + Name: "daemon.experimental", + Usage: "docker daemon Experimental mode", + EnvVar: "PLUGIN_EXPERIMENTAL", + }, cli.BoolFlag{ Name: "daemon.debug", Usage: "docker daemon executes in debug mode", @@ -170,6 +175,7 @@ func run(c *cli.Context) error { Bip: c.String("daemon.bip"), DNS: c.StringSlice("daemon.dns"), MTU: c.String("daemon.mtu"), + Experimental: c.Bool("daemon.experimental"), }, } diff --git a/plugin.go b/plugin.go index fae943c..af5bbec 100644 --- a/plugin.go +++ b/plugin.go @@ -28,6 +28,7 @@ type ( DNS []string // Docker daemon dns server MTU string // Docker daemon mtu setting IPv6 bool // Docker daemon IPv6 networking + Experimental bool // Docker daemon enable experimental mode } // Login defines Docker login parameters. @@ -276,6 +277,9 @@ func commandDaemon(daemon Daemon) *exec.Cmd { if len(daemon.MTU) != 0 { args = append(args, "--mtu", daemon.MTU) } + if daemon.Experimental { + args = append(args, "--experimental") + } return exec.Command(dockerExe, args...) }