Hadolint is a Dockerfile linter and Haskell-based static analysis tool. It analyzes container image configuration files against a set of rules to ensure valid syntax and adherence to best practices.
The tool functions as a wrapper for shell checkers to inspect inline shell commands and scripts within build instructions, identifying scripting errors and bugs. It also includes security auditing capabilities to warn when images are pulled from registries not explicitly listed as trusted.
The analysis engine covers quality assurance through label schema validation, syntax pattern verification, and image optimization. Users can manage the process via configuration files to control rule severity, suppress specific warnings, and define shell compatibility for non-POSIX environments.