How to detect Docker Bench for Docker Security
This article shows you how to conduct Docker security testing Docker Bench, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.
Docker Bench for Security is a script that checks for security issues related to the deployment of Docker containers in production.
Github address: https://github.com/docker/docker-bench-security
1. Operation and monitoring in image mode:
Add-- rm, delete after running, obsessive-compulsive disorder ~
Docker run-it-- rm-- net host-- pid host-- userns 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
2. Docker-compose installation:
Git clone https://github.com/docker/docker-bench-security.gitcd docker-bench-securitydocker-compose run-- rm docker-bench-security
3. Download git:
Git clone https://github.com/docker/docker-bench-security.gitcd docker-bench-securitysudo sh docker-bench-security.sh the above content is how to conduct Docker security inspection Docker Bench, have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.