From 3fce5e1084312cdccae50604f48c4c605f6514f3 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 28 Sep 2015 11:23:23 +0200 Subject: [PATCH] bash completion for `docker daemon --cluster-*` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 6055ede511..2be852ddc1 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -534,6 +534,8 @@ _docker_daemon() { --api-cors-header --bip --bridge -b + --cluster-advertise + --cluster-store --default-gateway --default-gateway-v6 --default-ulimit @@ -560,6 +562,11 @@ _docker_daemon() { " case "$prev" in + --cluster-store) + COMPREPLY=( $( compgen -W "consul etcd zk" -S "://" -- "$cur" ) ) + __docker_nospace + return + ;; --exec-root|--graph|-g) _filedir -d return