bash completion for `docker {run,create} --security-opt no-new-privileges`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-03-29 09:59:04 +02:00 committed by Tibor Vass
parent 77c0ed6344
commit 327d937bf0
1 changed files with 4 additions and 2 deletions

View File

@ -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)