add dockersecure

This commit is contained in:
2016-07-02 00:13:07 +02:00
parent 85eb9fd8f8
commit 7a1ae1062c

View File

@@ -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
}
}