From 7469b4aa7229bfe96e0620bfd0268d5e9dc71843 Mon Sep 17 00:00:00 2001
From: Michael Boelen <michael.boelen@cisofy.com>
Date: Mon, 26 Aug 2019 20:27:00 +0200
Subject: [PATCH] [CONT-8106] support for newer 'docker info' output that
 includes additional space

---
 include/tests_containers | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/tests_containers b/include/tests_containers
index fb570fdb..cda52da7 100644
--- a/include/tests_containers
+++ b/include/tests_containers
@@ -137,7 +137,7 @@
 
         # Check total of containers
         LogText "Test: checking total amount of Docker containers"
-        DOCKER_CONTAINERS_TOTAL=$(${DOCKERBINARY} info 2> /dev/null | ${GREPBINARY} "^Containers: " | ${AWKBINARY} '{ print $2 }')
+        DOCKER_CONTAINERS_TOTAL=$(${DOCKERBINARY} info 2> /dev/null | ${EGREPBINARY} "^[ \t]?Containers: " | ${AWKBINARY} '{ print $2 }')
         if [ -z "${DOCKER_CONTAINERS_TOTAL}" ]; then
             DOCKER_CONTAINERS_TOTAL=0
         fi