-
Notifications
You must be signed in to change notification settings - Fork 1k
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
excluding group not working #453
Comments
Hi again @Constantin07, are you using a image you built yourself or the official one? $ sudo bash docker-bench-security.sh -e docker_swarm_configuration,check_6_1,check_5_29
[...]
[PASS] 5.26 - Ensure that container health is checked at runtime (Scored)
[INFO] 5.27 - Ensure that Docker commands always make use of the latest version of their image (Not Scored)
[WARN] 5.28 - Ensure that the PIDs cgroup limit is used (Scored)
[WARN] * PIDs limit not set: blissful_newton
[WARN] * PIDs limit not set: eager_lewin
[WARN] * PIDs limit not set: sharp_wozniak
[PASS] 5.30 - Ensure that the host's user namespaces are not shared (Scored)
[PASS] 5.31 - Ensure that the Docker socket is not mounted inside any containers (Scored)
[INFO] 6 - Docker Security Operations
[INFO] 6.2 - Ensure that container sprawl is avoided (Not Scored)
[INFO] * There are currently a total of 4 containers, with 3 of them currently running
[INFO] 8 - Docker Enterprise Configuration
[INFO] * Community Engine license, skipping section 8
[INFO] Checks: 95
[INFO] Score: 12 |
|
Thanks @konstruktoid for getting back, I was using official one, |
The official |
Thanks @konstruktoid you are right, the image shows version |
I confirm it works fine now. Thanks @konstruktoid |
Trying to exclude the
docker_swarm_configuration
group:docker run --rm --net host --pid host --userns host --cap-add audit_control \ -e DOCKER_CONTENT_TRUST=$DOCKER_CONTENT_TRUST \ -v /etc:/etc:ro \ -v /usr/bin/containerd:/usr/bin/containerd:ro \ -v /usr/bin/runc:/usr/bin/runc:ro \ -v /usr/lib/systemd:/usr/lib/systemd:ro \ -v /var/lib:/var/lib:ro \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ --label docker_bench_security \ docker/docker-bench-security -e docker_swarm_configuration,check_1_1
the
check_1_1
is excluded from output but the groups not:The text was updated successfully, but these errors were encountered: