From bb45e581eeb534c271857a1d194a2500865a8f83 Mon Sep 17 00:00:00 2001 From: Eragos Date: Sat, 2 Jul 2016 21:14:08 +0200 Subject: [PATCH] small changes --- functions | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 3103cf9..308c595 100644 --- a/functions +++ b/functions @@ -12,8 +12,14 @@ 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 +#Docker: run docker security check +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