Permalink
Browse files

exclude docker-bench-security container #286

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
  • Loading branch information...
konstruktoid committed Nov 23, 2018
1 parent a7a24a8 commit 9d9da6d375c8559c66e6c95164d3a9da6b9b6755
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 9d9da6d

Please sign in to comment.