hadolint is a linter for Docker.

You can enable the hadolint linter with:

trunk check enable hadolint

Auto Enabling

hadolint will be auto-enabled if any Docker files are present.


hadolint supports the following config files:

  • .hadolint.yaml

  • .hadolint.yml

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info. Trunk check provides a default .hadolint.yaml if your project does not already have one.

Last updated