Skip to content

Commit d5b900c

Browse files
committed
use mountpoint and DockerRootDir docker#332
Signed-off-by: Thomas Sjögren <[email protected]>
1 parent 1721253 commit d5b900c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/1_host_configuration.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ check_1_1() {
1818

1919
totalChecks=$((totalChecks + 1))
2020

21-
if grep /var/lib/docker /etc/fstab >/dev/null 2>&1; then
22-
pass "$check_1_1"
23-
resulttestjson "PASS"
24-
currentScore=$((currentScore + 1))
25-
elif mountpoint -q -- /var/lib/docker >/dev/null 2>&1; then
21+
if mountpoint -q -- "$(docker info -f '{{ .DockerRootDir }}')" >/dev/null 2>&1; then
2622
pass "$check_1_1"
2723
resulttestjson "PASS"
2824
currentScore=$((currentScore + 1))

0 commit comments

Comments
 (0)