From: Rafael dos Santos Silva Date: Tue, 4 Jul 2017 15:45:34 +0000 (-0300) Subject: FIX: More resilient docker fs space detection X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8cdc533d7ec3d6b27b9f5b78cf80c537a5834f70;p=discourse_docker.git FIX: More resilient docker fs space detection --- diff --git a/launcher b/launcher index ff243dd..d45ed8f 100755 --- a/launcher +++ b/launcher @@ -197,8 +197,8 @@ check_prereqs() { fi # 7. enough space for the bootstrap on docker folder - folder=`docker info --format '{{(index (index .DriverStatus 0) 1)}}'` - safe_folder=${folder:-/var/lib/docker/aufs} + folder=`$docker_path info --format '{{.DockerRootDir}}'` + safe_folder=${folder:-/var/lib/docker} test=$(($(stat -f --format="%a*%S" $safe_folder)/1024**3 < 5)) if [[ $test -ne 0 ]] ; then echo "You have less than 5GB of free space on the disk. You will need more space to continue"