mirror of https://github.com/docker/cli.git
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
77c0ed6344
commit
327d937bf0
|
@ -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 New Issue