mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
Merge pull request #242 from konstruktoid/issue_241
.Server.Experimental pre-1.13
This commit is contained in:
commit
7e6ac47467
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ fi
|
||||||
|
|
||||||
# 2.21
|
# 2.21
|
||||||
check_2_21="2.21 - Avoid experimental features in production"
|
check_2_21="2.21 - Avoid experimental features in production"
|
||||||
if docker info 2>/dev/null | grep -e "Experimental:\s*false*" 2>/dev/null 1>&2; then
|
if docker version -f '{{.Server.Experimental}}' | grep false 2>/dev/null 1>&2; then
|
||||||
pass "$check_2_21"
|
pass "$check_2_21"
|
||||||
else
|
else
|
||||||
warn "$check_2_21"
|
warn "$check_2_21"
|
||||||
|
|
Loading…
Reference in a new issue