From 969d660c4023ca048a8153e334a0d2ee1fc4ab77 Mon Sep 17 00:00:00 2001 From: cuiwei13 Date: Wed, 18 May 2016 16:29:06 +0800 Subject: [PATCH] add checking to avoid using overlayfs (due to no quota support, similar to aufs driver issue, which is protential for containers to run out of disk space easily with a simple command: dd if=/dev/zero of=hack ). Signed-off-by: cuiwei13 --- tests/2_docker_daemon_configuration.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/2_docker_daemon_configuration.sh b/tests/2_docker_daemon_configuration.sh index 3822b62..b416994 100644 --- a/tests/2_docker_daemon_configuration.sh +++ b/tests/2_docker_daemon_configuration.sh @@ -40,8 +40,8 @@ else fi # 2.5 -check_2_5="2.5 - Do not use the aufs storage driver" -docker info 2>/dev/null | grep -e "^Storage Driver:\s*aufs\s*$" >/dev/null 2>&1 +check_2_5="2.5 - Do not use the aufs/overlayfs storage driver" +docker info 2>/dev/null | grep -e "^Storage Driver:\s*aufs\s*$" -e "^Storage Driver:\s*overlay\s*$" >/dev/null 2>&1 if [ $? -eq 0 ]; then warn "$check_2_5" else