diff options
author | Felix Abecassis <fabecassis@nvidia.com> | 2016-11-16 03:01:46 +0300 |
---|---|---|
committer | Felix Abecassis <fabecassis@nvidia.com> | 2016-11-16 03:11:59 +0300 |
commit | 10f7ea1ac3afc5919787fad89b595a7a2363bd0c (patch) | |
tree | b8e1cf8b2d5a82b897d15d3ca0460813336d11e6 | |
parent | 369c559c9dba662d119dc7d9327b75d342637f9a (diff) |
Add support for Docker 1.13
-rw-r--r-- | tools/src/docker/docker.go | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/src/docker/docker.go b/tools/src/docker/docker.go index 1df434b..609f936 100644 --- a/tools/src/docker/docker.go +++ b/tools/src/docker/docker.go @@ -46,7 +46,7 @@ func docker(stdout bool, command string, arg ...string) (b []byte, err error) { return b, nil } -// List of boolean options: https://github.com/docker/docker/blob/v1.11.0/contrib/completion/bash/docker +// List of boolean options: https://github.com/docker/docker/blob/v1.13.0-rc1/contrib/completion/bash/docker var booleanFlags = map[string]map[string][]string{ "1.9": { "": []string{"-debug", "D", "-tls", "-tlsverify"}, // global options @@ -93,6 +93,18 @@ var booleanFlags = map[string]map[string][]string{ "-privileged", "-publish-all", "P", "-read-only", "-tty", "t", // same as "create" "-detach", "d", "-no-healthcheck", "-rm", "-sig-proxy"}, }, + "1.13": { + "": []string{"-debug", "D", "-tls", "-tlsverify"}, // global options + "daemon": []string{"-debug", "D", "-tls", "-tlsverify", // global options + "-disable-legacy-registry", "-experimental", "-help", "-icc", "-ip-forward", + "-ip-masq", "-iptables", "-ipv6", "-live-restore", "-raw-logs", + "-selinux-enabled", "-userland-proxy"}, + "create": []string{"-disable-content-trust", "-help", "-interactive", "i", "-oom-kill-disable", + "-privileged", "-publish-all", "P", "-read-only", "-tty", "t"}, + "run": []string{"-disable-content-trust", "-help", "-interactive", "i", "-oom-kill-disable", + "-privileged", "-publish-all", "P", "-read-only", "-tty", "t", // same as "create" + "-detach", "d", "-no-healthcheck", "-rm", "-sig-proxy"}, + }, } func ParseArgs(args []string, cmd ...string) (string, int, error) { |