Skip to content

Instantly share code, notes, and snippets.

@vmleon
Created July 7, 2020 16:02
Show Gist options
  • Save vmleon/5d9371c5c260e569c8ae06e4f53a1c72 to your computer and use it in GitHub Desktop.
Save vmleon/5d9371c5c260e569c8ae06e4f53a1c72 to your computer and use it in GitHub Desktop.
Kubernetes Security
#!/bin/bash
docker run -it --net host --pid host --cap-add audit_control \
-e DOCKER_CONTENT_TRUST=$DOCKER_CONTENT_TRUST \
-v /var/lib:/var/lib \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/lib/systemd:/usr/lib/systemd \
-v /etc:/etc --label docker_bench_security \
docker/docker-bench-security:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment