From 1648d6c4a4fd35b6b349680654380ccf1184dcf4 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 25 Apr 2019 23:49:30 +0200 Subject: [PATCH] Add bash completion for `--security-opt systempaths=unconfined` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index c41f00a573..e5c942cd3a 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2112,8 +2112,8 @@ _docker_container_run_and_create() { return ;; --security-opt) - COMPREPLY=( $( compgen -W "apparmor= label= no-new-privileges seccomp=" -- "$cur") ) - if [ "${COMPREPLY[*]}" != "no-new-privileges" ] ; then + COMPREPLY=( $( compgen -W "apparmor= label= no-new-privileges seccomp= systempaths=unconfined" -- "$cur") ) + if [[ ${COMPREPLY[*]} = *= ]] ; then __docker_nospace fi return