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
parent e6aa40a017
commit e96d086afd

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)