Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.1 "Ensure a separate partition for containers has been created" doesn't work with userns #394

Closed
AkihiroSuda opened this issue Sep 30, 2019 · 1 comment

Comments

@AkihiroSuda
Copy link

# 1.2.1
check_1_2_1() {
id_1_2_1="1.2.1"
desc_1_2_1="Ensure a separate partition for containers has been created"
check_1_2_1="$id_1_2_1 - $desc_1_2_1"
starttestjson "$id_1_2_1" "$desc_1_2_1"
totalChecks=$((totalChecks + 1))
if mountpoint -q -- "$(docker info -f '{{ .DockerRootDir }}')" >/dev/null 2>&1; then
pass "$check_1_2_1"
resulttestjson "PASS"
currentScore=$((currentScore + 1))
else
warn "$check_1_2_1"
resulttestjson "WARN"
currentScore=$((currentScore - 1))
fi
}

This check fails when /var/lib/docker has a dedicated partition but userns-remap is enabled, because .DockerRootDir is like /var/lib/docker/296608.296608, not /var/lib/docker

@konstruktoid
Copy link
Collaborator

Duplicate of #332

@konstruktoid konstruktoid marked this as a duplicate of #332 Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants