From d1340b9440461ed5637ad0026e298729fec79d96 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 13 Mar 2017 16:50:08 +0100 Subject: [PATCH] Fix bash completion for service constraints - Remove bash completion for `service update --constraint` - Add bash completion for `service update --constraint-{add,rm}` 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 c2befb9128..642426ccfb 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2967,7 +2967,6 @@ _docker_service_update_and_create() { local $subcommand="${words[$subcommand_pos]}" local options_with_args=" - --constraint --endpoint-mode --env -e --force @@ -3018,6 +3017,7 @@ _docker_service_update_and_create() { if [ "$subcommand" = "create" ] ; then options_with_args="$options_with_args + --constraint --container-label --dns --dns-option @@ -3061,6 +3061,8 @@ _docker_service_update_and_create() { if [ "$subcommand" = "update" ] ; then options_with_args="$options_with_args --arg + --constraint-add + --constraint-rm --container-label-add --container-label-rm --dns-add