mirror of https://github.com/docker/cli.git
bash completion for `docker daemon --userns-remap`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
d3f2c73453
commit
645055b37d
|
@ -770,6 +770,7 @@ _docker_daemon() {
|
||||||
--registry-mirror
|
--registry-mirror
|
||||||
--storage-driver -s
|
--storage-driver -s
|
||||||
--storage-opt
|
--storage-opt
|
||||||
|
--userns-remap
|
||||||
"
|
"
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
|
@ -845,6 +846,15 @@ _docker_daemon() {
|
||||||
__docker_complete_log_options
|
__docker_complete_log_options
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--userns-remap)
|
||||||
|
if [[ $cur == *:* ]] ; then
|
||||||
|
COMPREPLY=( $(compgen -g -- "${cur#*:}") )
|
||||||
|
else
|
||||||
|
COMPREPLY=( $(compgen -u -S : -- "$cur") )
|
||||||
|
__docker_nospace
|
||||||
|
fi
|
||||||
|
return
|
||||||
|
;;
|
||||||
$(__docker_to_extglob "$options_with_args") )
|
$(__docker_to_extglob "$options_with_args") )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue