projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49b2fcc
)
FIX: More resilient docker fs space detection
author
Rafael dos Santos Silva
<xfalcox@gmail.com>
Tue, 4 Jul 2017 15:45:34 +0000
(12:45 -0300)
committer
Rafael dos Santos Silva
<xfalcox@gmail.com>
Tue, 4 Jul 2017 15:45:34 +0000
(12:45 -0300)
launcher
patch
|
blob
|
blame
|
history
diff --git
a/launcher
b/launcher
index ff243dd52d3ac2715112f5de52d5c0cfad4f2c93..d45ed8f5205927889c3c73afb1f262b21006e791 100755
(executable)
--- 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"