# Hadolint

> Dockerfile linter that checks best practices and the shell in RUN lines

Source: https://talira.ai/catalog/hadolint-gnzsdn0x
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / linting](https://talira.ai/categories/developer-tools/linting), [developer tools / build / docker](https://talira.ai/categories/developer-tools/build/docker)
- Platforms: macos, windows, linux, cli, docker[^1]
- Licence: GPL-3.0-only[^2][^3]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source.
- Free tier: yes[^2]
- Backed by: [Hadolint](https://talira.ai/orgs/hadolint.md)

Hadolint is an open source Dockerfile linter that parses a Dockerfile into an abstract syntax tree and checks it against best-practice rules for building Docker images, and uses [ShellCheck](https://talira.ai/catalog/shellcheck-301sfq95.md) to lint the Bash code inside RUN instructions. Rules can be ignored inline or globally, labels can be linted against a schema, untrusted base image registries can be flagged, and results come out in formats for CI and editors. It runs as a single binary for macOS, Windows and Linux, as a container image, or in the browser on its website. It's written in Haskell under the GPL-3.0 licence.

## Links

- Website: https://hadolint.github.io/hadolint/
- GitHub: https://github.com/hadolint/hadolint

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/hadolint>[^1]

## Problems it solves

- catch mistakes and bad practices in my Dockerfile before building the image
- fail the CI build when a Dockerfile breaks our container guidelines
- check the shell commands in Dockerfile RUN lines for bugs

## Features

- Dockerfile best-practice rules
- ShellCheck linting of RUN instructions
- inline and global rule ignores
- label linting
- trusted registry checks
- CI-friendly output formats
- online version in the browser

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.58 out of 1.
Signals: maintenance 0.60, adoption 0.82, momentum 0.60, community 0.87, backing 0.30, extensibility 0.20.

- last commit 35 days ago
- 22 commits in the last 90 days
- latest release v2.15.1 3 months ago
- 12.5k GitHub stars
- 147 contributors
- has a company behind it

## Related

- Based on [ShellCheck](https://talira.ai/catalog/shellcheck-301sfq95.md)

## Alternatives

- [ShellCheck](https://talira.ai/catalog/shellcheck-301sfq95.md): A shell script static analysis tool

## Sources

[^1]: https://github.com/hadolint/hadolint#install (checked 23 Nov 2026)
[^2]: https://github.com/hadolint/hadolint/blob/master/LICENSE (checked 23 Nov 2026)
[^3]: https://github.com/hadolint/hadolint/blob/master/hadolint.cabal (checked 23 Nov 2026)
