small changes

This commit is contained in:
2016-07-02 21:14:08 +02:00
parent 7a1ae1062c
commit bb45e581ee

View File

@@ -12,8 +12,14 @@ dockerlog() {
docker logs -f $1 docker logs -f $1
} }
dockersec() { #Docker: run docker security check
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 dockersecure() {
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 --rm docker/docker-bench-security
}
# WRK
function wrk() {
docker run --rm williamyeh/wrk --latency $1
} }
# Simple calculator # Simple calculator