From 7787fc0ec97040753db59524061d602fa98929bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Thu, 23 Feb 2017 17:01:47 +0100 Subject: [PATCH] correct check_2_21, closes #221 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/2_docker_daemon_configuration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/2_docker_daemon_configuration.sh b/tests/2_docker_daemon_configuration.sh index 6f97883..9d27069 100644 --- a/tests/2_docker_daemon_configuration.sh +++ b/tests/2_docker_daemon_configuration.sh @@ -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"