From 584495e10a12660245f4e165a68ab7cfdbc9cbd9 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev Date: Mon, 10 Oct 2016 23:24:05 +0500 Subject: [PATCH 1/3] Update main.go --- main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.go b/main.go index f597321..9145cbf 100644 --- a/main.go +++ b/main.go @@ -65,6 +65,11 @@ func main() { Usage: "docker daemon allows insecure registries", EnvVar: "PLUGIN_INSECURE", }, + cli.BoolFlag{ + Name: "daemon.ipv6", + Usage: "docker daemon IPv6 networking", + EnvVar: "PLUGIN_IPV6", + }, cli.BoolFlag{ Name: "daemon.debug", Usage: "docker daemon executes in debug mode", @@ -163,6 +168,7 @@ func run(c *cli.Context) error { StoragePath: c.String("daemon.storage-path"), Insecure: c.Bool("daemon.insecure"), Disabled: c.Bool("daemon.off"), + IPv6: c.Bool("daemon.ipv6"), Debug: c.Bool("daemon.debug"), Bip: c.String("daemon.bip"), DNS: c.StringSlice("daemon.dns"), From 9f69474b46e4ac3c48c87d3016eae70079f54d13 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev Date: Mon, 10 Oct 2016 23:26:13 +0500 Subject: [PATCH 2/3] Update plugin.go --- plugin.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin.go b/plugin.go index 89fd7fd..0c30160 100644 --- a/plugin.go +++ b/plugin.go @@ -213,6 +213,9 @@ func commandDaemon(daemon Daemon) *exec.Cmd { if daemon.Insecure && daemon.Registry != "" { args = append(args, "--insecure-registry", daemon.Registry) } + if daemon.IPv6 { + args = append(args, "--ipv6") + } if len(daemon.Mirror) != 0 { args = append(args, "--registry-mirror", daemon.Mirror) } From 6797c73579805ca00333881c0af6ccc923ced910 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev Date: Mon, 10 Oct 2016 23:27:03 +0500 Subject: [PATCH 3/3] Update plugin.go --- plugin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin.go b/plugin.go index 0c30160..9f1d1fc 100644 --- a/plugin.go +++ b/plugin.go @@ -27,6 +27,7 @@ type ( Bip string // Docker daemon network bridge IP address DNS []string // Docker daemon dns server MTU string // Docker daemon mtu setting + IPv6 bool // Docker daemon IPv6 networking } // Login defines Docker login parameters.