From e00293bec8818a4258724d187be4bf076890c74f Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Mon, 13 Jul 2015 16:59:34 +0200 Subject: [PATCH] Add missing log drivers to bash completion Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 6ea82b2162..6e17c5d09e 100755 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -182,6 +182,17 @@ __docker_capabilities() { " -- "$cur" ) ) } +__docker_log_drivers() { + COMPREPLY=( $( compgen -W " + fluentd + gelf + journald + json-file + none + syslog + " -- "$cur" ) ) +} + # a selection of the available signals that is most likely of interest in the # context of docker containers. __docker_signals() { @@ -222,7 +233,7 @@ _docker_docker() { return ;; --log-driver) - COMPREPLY=( $( compgen -W "json-file syslog none" -- "$cur" ) ) + __docker_log_drivers return ;; --log-level|-l) @@ -941,7 +952,7 @@ _docker_run() { return ;; --log-driver) - COMPREPLY=( $( compgen -W "json-file syslog none" -- "$cur") ) + __docker_log_drivers return ;; --net)