You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run --memory=256m hello-world:latest
sudo docker-bench --benchmark cis-1.3.1 --include-test-output --config-dir /etc/docker-bench/cfg | grep "] 5.10" -A 1
[FAIL] 5.10 Ensure that the memory usage for container is limited (Automated)
87d3272a4a42fdeb534935bccb9b934f13761fc7e8ba82e233de581213d05359:Memory=268435456
Possible solution
It seems like the problem can be resolved by using a regex
Observation
The problem seems to be due to the format of the output returned by the audit command, which contains the container Id.
For example
is considered a
FAIL
byPossible solution
It seems like the problem can be resolved by using a regex
instead of
docker-bench/cfg/cis-1.3.1/definitions.yaml
Line 1313 in b6e798b
Other affected checks
docker-bench/cfg/cis-1.3.1/definitions.yaml
Line 1333 in b6e798b
System details
docker-bench https://github.com/aquasecurity/docker-bench/releases/tag/v0.5.0
docker-bench_0.5.0_linux_amd64.rpm
The text was updated successfully, but these errors were encountered: