mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
correct check_2_21, closes #221
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
7c20138161
commit
7787fc0ec9
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ fi
|
|||
|
||||
# 2.21
|
||||
check_2_21="2.21 - Avoid experimental features in production"
|
||||
if docker info 2>/dev/null | grep -e "^Live Restore Enabled:\s*false\s*$" >/dev/null 2>&1; then
|
||||
if docker version --format '{{ .Server.Experimental }}' | grep 'false' 2>/dev/null 1>&2; then
|
||||
pass "$check_2_21"
|
||||
else
|
||||
warn "$check_2_21"
|
||||
|
|
Loading…
Reference in a new issue