Add bash completion for `--cluster-store-opt`
@@ -537,6 +537,7 @@ _docker_daemon() {
--bridge -b
--cluster-advertise
--cluster-store
+ --cluster-store-opt
--default-gateway
--default-gateway-v6
--default-ulimit
@@ -568,6 +569,11 @@ _docker_daemon() {
__docker_nospace
return
;;
+ --cluster-store-opt)
+ COMPREPLY=( $( compgen -W "kv.cacertfile kv.certfile kv.keyfile" -S = -- "$cur" ) )
+ __docker_nospace
+ return
+ ;;
--exec-root|--graph|-g)
_filedir -d
return
@@ -631,8 +637,8 @@ _docker_daemon() {
__docker_complete_log_driver_options && return
- # completions for --storage-opt
case "${words[$cword-2]}$prev=" in
+ # completions for --storage-opt
*dm.blkdiscard=*)
COMPREPLY=( $( compgen -W "false true" -- "${cur#=}" ) )
return
@@ -649,6 +655,11 @@ _docker_daemon() {
_filedir
return
;;
+ # completions for --cluster-store-opt
+ *kv.*file=*)
+ _filedir
+ return
+ ;;
esac
case "$cur" in
