docker-bench-security
The Docker Bench for Security is a script that checks for dozens of common best-practices around deploying Docker containers in production. (by docker)
hadolint
Dockerfile linter, validate inline bash, written in Haskell (by hadolint)
| docker-bench-security | hadolint | |
|---|---|---|
| 16 | 33 | |
| 9,619 | 12,211 | |
| 0.0% | 0.9% | |
| 4.8 | 8.1 | |
| over 1 year ago | 2 days ago | |
| Shell | Haskell | |
| Apache License 2.0 | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
docker-bench-security
Posts with mentions or reviews of docker-bench-security.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-07-05.
-
Locking Down Your Docker Containers: A Developer’s Guide to Encryption
# Clone Docker Bench git clone https://github.com/docker/docker-bench-security.git cd docker-bench-security # Run the audit docker run -it --net host --pid host --userns host --cap-add audit_control \ -v /var/lib/docker:/var/lib/docker \ -v /etc/docker:/etc/docker \ docker/docker-bench-security
-
Advanced Docker Container Security: A Comprehensive Guide to Protecting Your Containerized Applications
Docker Security GitHub Repository
-
Lockdown Your Containers: 11 Docker Security Tips
Regular security audits are crucial for maintaining the security of your Docker environment. Docker Bench for Security is a script that checks for dozens of common best practices around deploying Docker containers in production.
-
Understanding Container Security
Scanning your container images for vulnerabilities is a good approach. But this scanning is not one time job, it should be done regularly (weekly, monthly, etc.) You need to follow vulnerability reports and fix all of the vulnerabilities as soon as possible. I recommend some open-source tools that could be useful: Trivy, Docker-Bench, Grype.
-
Security docker app
For Docker configuration I have used this in the past (it utilizes the CIS Docker Benchmark): https://github.com/docker/docker-bench-security
- What's your favourite Docker Image, and why?
-
Docker image scan against cis benchmark
So the main tool to scan against the CIS Docker benchmark (I'm presuming that's the one you're interested in) is https://github.com/docker/docker-bench-security .
-
How to enhance container security using Docker Bench
git clone https://github.com/docker/docker-bench-security.git cd docker-bench-security sudo sh docker-bench-security.sh
-
Importing certificates into containers
when deploying images on cloud, I always run it thru "docker bench security" It helps finding potential security holes in my images.
-
How to Secure Your Kubernetes Clusters With Best Practices
Use Docker Bench for Security to audit your container images
hadolint
Posts with mentions or reviews of hadolint.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2026-05-22.
-
9 in 10 Docker Compose files skip the basic security flags
What bugged me was the asymmetry. Kubernetes and Terraform have a deep bench of scanners: Checkov, Trivy, kube-bench, Kubescape. Compose is an afterthought in most of them. The Compose-specific tools I found solved adjacent problems instead. Hadolint lints Dockerfiles, not Compose files. dclint checks Compose structure and style, not security.
-
DevSecOps: Integrating Security into Your CI/CD Pipeline
# .pre-commit-config.yaml repos: - repo: https://github.com/Yelp/detect-secrets rev: v1.4.0 hooks: - id: detect-secrets args: ['--baseline', '.secrets.baseline'] exclude: 'tests/.*|\.lock$' - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: - id: check-added-large-files args: ['--maxkb=500'] - id: check-merge-conflict - id: detect-private-key - id: no-commit-to-branch args: ['--branch', 'main'] - repo: https://github.com/hadolint/hadolint rev: v2.12.0 hooks: - id: hadolint-docker name: Lint Dockerfiles
-
Developer Tooling #007
hadolint Description: Dockerfile linter, validate inline bash, written in Haskell. What we like: Well-maintained over the long term, active development, works very well. A true 12-factor application - can even be configured via environment vars! What we don't like: No JSON output. Extras: Lint Dockerfiles online
-
Stop shipping insecure Dockerfiles: real devs don’t run as root
Hadolint Dockerfile Linter
-
Still Shipping 1GB Docker Images? Here’s How to Crush Them in Half an Hour
Hadolint — Linter for your Dockerfile
-
Dockerfile Best Practices: The Ultimate Guide to Optimizing Your Container Builds
[Source: Hadolint on GitHub]
-
10 Docker Security Best Practices
One such linter is hadolint. It parses a Dockerfile and shows a warning for any errors that do not match its best practice rules.
-
Top FP technologies
Like hadolint: Dockerfile linter, validate inline bash, written in Haskell; Purescript, Unison, Idris languages implemented in Haskell. I recommend to check ideas behinds those projects. Especially Unison's mind-blowing something naive idea about infinite computational resources.
-
Cloud Security and Resilience: DevSecOps Tools and Practices
3. Hadolint: https://github.com/hadolint/hadolint Hadolint is a Dockerfile linter that helps you build best practice Docker images, reducing vulnerabilities in your container configurations.
- Dockerfile Linter
What are some alternatives?
When comparing docker-bench-security and hadolint you can also consider the following projects:
kube-bench - Checks whether Kubernetes is deployed according to security best practices as defined in the CIS Kubernetes Benchmark
trivy - Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
gatekeeper-library - 📚 The OPA Gatekeeper policy library
dockle - Container Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start
Docker-Security - Getting a handle on container security
uhc-util - Utilities required by UHC (Utrecht Haskell Compiler)