bash completion for docker {run,create} --security-opt no-new-privileges
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
e6aa40a017
commit
e96d086afd
1 changed files with 4 additions and 2 deletions
|
@ -1821,8 +1821,10 @@ _docker_run() {
|
|||
return
|
||||
;;
|
||||
--security-opt)
|
||||
COMPREPLY=( $( compgen -W "apparmor label seccomp" -S "=" -- "$cur") )
|
||||
__docker_nospace
|
||||
COMPREPLY=( $( compgen -W "apparmor= label= no-new-privileges seccomp=" -- "$cur") )
|
||||
if [ "${COMPREPLY[*]}" != "no-new-privileges" ] ; then
|
||||
__docker_nospace
|
||||
fi
|
||||
return
|
||||
;;
|
||||
--user|-u)
|
||||
|
|
Loading…
Reference in a new issue