diff --git a/functions b/functions index bd9ac2d..3103cf9 100644 --- a/functions +++ b/functions @@ -12,6 +12,10 @@ dockerlog() { docker logs -f $1 } +dockersec() { + docker run -it --net host --pid host --cap-add audit_control -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 +} + # Simple calculator function calc() { local result=""; @@ -76,4 +80,4 @@ function extract { echo "$1 - file does not exist" fi fi -} \ No newline at end of file +}