Permalink
Browse files

Merge pull request #349 from konstruktoid/ISSUE286

exclude docker-bench-security container #286
  • Loading branch information...
konstruktoid committed Nov 23, 2018
2 parents a7a24a8 + 9d9da6d commit cc6b16d8a7d3615f815b08655a5a2a09b549680d
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.md
  2. +1 −1 docker-bench-security.sh
@@ -82,7 +82,7 @@ following steps:
```sh
git clone https://github.com/docker/docker-bench-security.git
cd docker-bench-security
docker build -t docker-bench-security .
docker build --no-cache -t docker-bench-security .
docker run -it --net host --pid host --cap-add audit_control \
-e DOCKER_CONTENT_TRUST=$DOCKER_CONTENT_TRUST \
-v /var/lib:/var/lib \
@@ -95,7 +95,7 @@ beginjson "$version" "$(date +%s)"
main () {
# If there is a container with label docker_bench_security, memorize it:
benchcont="nil"
for c in $containers; do
for c in $(docker ps | sed '1d' | awk '{print $NF}'); do
if docker inspect --format '{{ .Config.Labels }}' "$c" | \
grep -e 'docker.bench.security' >/dev/null 2>&1; then
benchcont="$c"

0 comments on commit cc6b16d

Please sign in to comment.