Skip to content

Commit

Permalink
Add missing log drivers to bash completion
Browse files Browse the repository at this point in the history
Signed-off-by: Harald Albers <github@albersweb.de>
  • Loading branch information
albers committed Jul 20, 2015
1 parent ac3f7c7 commit e09d0fe
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions contrib/completion/bash/docker
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -222,7 +233,7 @@ _docker_docker() {
return
;;
--log-driver)
COMPREPLY=( $( compgen -W "json-file syslog none" -- "$cur" ) )
__docker_log_drivers
return
;;
--log-level|-l)
Expand Down Expand Up @@ -941,7 +952,7 @@ _docker_run() {
return
;;
--log-driver)
COMPREPLY=( $( compgen -W "json-file syslog none" -- "$cur") )
__docker_log_drivers
return
;;
--net)
Expand Down

0 comments on commit e09d0fe

Please sign in to comment.