From: Rafael dos Santos Silva Date: Tue, 1 Aug 2017 21:07:57 +0000 (-0300) Subject: Better message when low on space in docker disk X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=da095c30d6ff22b9a8bb3b7abaf5237066f19fc5;p=discourse_docker.git Better message when low on space in docker disk --- diff --git a/launcher b/launcher index 57fae20..0a90baa 100755 --- a/launcher +++ b/launcher @@ -201,7 +201,8 @@ check_prereqs() { 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" + echo "You have less than 5GB of free space on the disk where $safe_folder is located. You will need more space to continue" + df -h $safe_folder echo read -p "Would you like to attempt to recover space by cleaning docker images and containers in the system?(y/N)" -n 1 -r echo