hadolint VS trivy

Compare hadolint vs trivy and see what are their differences.


Dockerfile linter, validate inline bash, written in Haskell (by hadolint)


Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more (by aquasecurity)
Our great sponsors
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • SaaSHub - Software Alternatives and Reviews
hadolint trivy
21 78
9,171 19,405
2.1% 3.6%
0.0 9.5
6 days ago 1 day ago
Haskell Go
GNU General Public License v3.0 only Apache License 2.0
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.


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 2022-08-14.


Posts with mentions or reviews of trivy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-01.

What are some alternatives?

When comparing hadolint and trivy you can also consider the following projects:

snyk - Snyk CLI scans and monitors your projects for security vulnerabilities. [Moved to: https://github.com/snyk/cli]

grype - A vulnerability scanner for container images and filesystems

clair - Vulnerability Static Analysis for Containers

checkov - Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.

syft - CLI tool and library for generating a Software Bill of Materials from container images and filesystems

falco - Cloud Native Runtime Security

dockle - Container Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start

kube-bench - Checks whether Kubernetes is deployed according to security best practices as defined in the CIS Kubernetes Benchmark

tfsec - Security scanner for your Terraform code

kics - Find security vulnerabilities, compliance issues, and infrastructure misconfigurations early in the development cycle of your infrastructure-as-code with KICS by Checkmarx.

gitleaks - Protect and discover secrets using Gitleaks 🔑