hadolint
« Back to VersTracker
Description:
Smarter Dockerfile linter to validate best practices
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Devops
Tags: docker linter devops ci-cd best-practices
Install: brew install hadolint
About:
Hadolint is a smart linter for Dockerfiles that checks for common pitfalls and anti-patterns. It validates Dockerfile instructions against established best practices to ensure builds are efficient, secure, and maintainable. The tool helps developers catch errors early and provides suggestions for optimizing image size and build speed.
Key Features:
  • Checks for best practices and common pitfalls
  • Supports custom rules and linting configurations
  • Provides actionable error messages and suggestions
  • Fast and lightweight, written in Haskell
  • Integrates with CI/CD pipelines and editor extensions
Use Cases:
  • Validating Dockerfiles in CI/CD pipelines
  • Improving Docker image security and performance
  • Enforcing consistent Dockerfile standards across teams
Alternatives:
  • Dockle – Focuses on security and CIS benchmarks for container images, whereas Hadolint primarily lints Dockerfile instructions.
  • Trivy – A comprehensive vulnerability scanner for containers and artifacts, while Hadolint specializes in Dockerfile static analysis.
Version History
Detected Version Rev Change Commit
Sep 22, 2025 11:06am 0 VERSION_BUMP 31c78422
Sep 13, 2025 9:57am 0 VERSION_BUMP dbd856df
Jan 5, 2025 6:23pm 0 VERSION_BUMP c341a3db