Add support of --experimental flag
This commit is contained in:
parent
37baf5e0d0
commit
f55d828a22
6
main.go
6
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"),
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -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...)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user