From 056ccf88beb86b49eebd3260c6e4649fd4096861 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Tue, 18 Jul 2017 19:13:18 +0200 Subject: [PATCH] Improve bash completion for `--credential-spec` This option is Windows specific and should be only available if the daemon runs on Windows. Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index f9186d819a..a511a9897a 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3289,7 +3289,6 @@ _docker_service_update() { # and `docker service update` _docker_service_update_and_create() { local options_with_args=" - --credential-spec --endpoint-mode --entrypoint --env -e @@ -3330,6 +3329,9 @@ _docker_service_update_and_create() { --user -u --workdir -w " + __docker_daemon_os_is windows && options_with_args+=" + --credential-spec + " local boolean_options=" --detach=false -d=false