Command-line tool
hadolint
brew/hadolint
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Smarter Dockerfile linter to validate best practices docker cli portable static-analysis devops-tools linter haskell dockerfile shellcheck
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id hadolint.hadolint -e scoop install hadolint
macOS
brew install hadolint
Linux
brew install hadolint
Lint a Dockerfile
hadolint path/to/Dockerfile
Lint a Dockerfile, displaying the output in JSON format
hadolint -f json path/to/Dockerfile
Lint a Dockerfile, displaying the output in a specific format
hadolint -f tty path/to/Dockerfile
Browse
Related command-line tools
- droast
Opinionated Dockerfile linter - Tally
Tally (Windows package; no description in the winget index) docker linter dockerfile containerfile - dockerfile-language-server
Language server for Dockerfiles powered by Node, TypeScript, and VSCode - docker-language-server
Language server for Dockerfiles, Compose files, and Bake files - terraform-iam-policy-validator
CLI to validate AWS IAM policies in Terraform templates for best practices - hadolint-sarif
Convert hadolint output to SARIF - trivy
Vulnerability scanner for container images, file systems, and Git repos docker security cli golang containers… - salt-lint
Check for best practices in SaltStack
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents