From 45671a70f3306f3ec115329a3afbc492158a25b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Sat, 11 Jul 2015 20:36:04 +0200 Subject: [PATCH] catch server versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/1_host_configuration.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/1_host_configuration.sh b/tests/1_host_configuration.sh index 5571b33..440c0ee 100644 --- a/tests/1_host_configuration.sh +++ b/tests/1_host_configuration.sh @@ -39,7 +39,8 @@ fi # 1.6 check_1_6="1.6 - Keep Docker up to date" -docker_version=$(docker --version | awk '{print $3}' | tr -d '[:alpha:]-,') +docker_version=$(docker version | grep -i -A1 '^server' | grep -i 'version:' \ + | awk '{print $NF; exit}' | tr -d '[:alpha:]-,') docker_current_version="1.7.0" do_version_check "$docker_current_version" "$docker_version" if [ $? -eq 11 ]; then