From 0f47a7b1effd34f8a5017e1f8635a14babbfb66d Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Sun, 5 Mar 2017 10:42:44 -0800 Subject: [PATCH] Improve bash completion for `service create|update --update-failure-action` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index ac6019dc52..c165c6c7ec 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -3131,6 +3131,10 @@ _docker_service_update_and_create() { COMPREPLY=( $( compgen -W "continue pause" -- "$cur" ) ) return ;; + --update-failure-action) + COMPREPLY=( $( compgen -W "continue pause rollback" -- "$cur" ) ) + return + ;; --user|-u) __docker_complete_user_group return