bash completion for `docker {run,create} --security-opt no-new-privileges`
@@ -1821,8 +1821,10 @@ _docker_run() {
return
;;
--security-opt)
- COMPREPLY=( $( compgen -W "apparmor label seccomp" -S "=" -- "$cur") )
+ COMPREPLY=( $( compgen -W "apparmor= label= no-new-privileges seccomp=" -- "$cur") )
+ if [ "${COMPREPLY[*]}" != "no-new-privileges" ] ; then
__docker_nospace
+ fi
return
;;
--user|-u)
