diff --git a/tests/5_container_runtime.sh b/tests/5_container_runtime.sh index 61658a7..68401d7 100644 --- a/tests/5_container_runtime.sh +++ b/tests/5_container_runtime.sh @@ -562,7 +562,8 @@ else fail=0 for c in $containers; do - if docker inspect --format 'SecurityOpt={{.HostConfig.SecurityOpt }}' "$c" | grep 'seccomp:unconfined' 2>/dev/null 1>&2; then + if docker inspect --format 'SecurityOpt={{.HostConfig.SecurityOpt }}' "$c" | \ + grep -E 'seccomp:unconfined|seccomp=unconfined' 2>/dev/null 1>&2; then # If it's the first container, fail the test if [ $fail -eq 0 ]; then warn "$check_5_21"