mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
Merge pull request #333 from konstruktoid/issue332
use mountpoint and DockerRootDir #332
This commit is contained in:
commit
e84e9e52e0
1 changed files with 1 additions and 5 deletions
|
@ -18,11 +18,7 @@ check_1_1() {
|
||||||
|
|
||||||
totalChecks=$((totalChecks + 1))
|
totalChecks=$((totalChecks + 1))
|
||||||
|
|
||||||
if grep /var/lib/docker /etc/fstab >/dev/null 2>&1; then
|
if mountpoint -q -- "$(docker info -f '{{ .DockerRootDir }}')" >/dev/null 2>&1; then
|
||||||
pass "$check_1_1"
|
|
||||||
resulttestjson "PASS"
|
|
||||||
currentScore=$((currentScore + 1))
|
|
||||||
elif mountpoint -q -- /var/lib/docker >/dev/null 2>&1; then
|
|
||||||
pass "$check_1_1"
|
pass "$check_1_1"
|
||||||
resulttestjson "PASS"
|
resulttestjson "PASS"
|
||||||
currentScore=$((currentScore + 1))
|
currentScore=$((currentScore + 1))
|
||||||
|
|
Loading…
Reference in a new issue