hadolint — Dockerfile linter rebased on Red Hat Hardened Images
648
hadolint is a Dockerfile linter that parses Dockerfiles
into an AST and applies a set of best-practice rules. It catches issues like missing image tags,
unpinned package versions, and apt-get / yum hygiene problems before they reach production.
This image rebases the upstream static Linux binary onto hi/core-runtime (Red Hat Hardened
Image). The binary is SHA256-verified at fetch time; the built image is cosign-signed with a
CycloneDX SBOM and SLSA Level 3 provenance attestation attached.
# Lint a Dockerfile
podman run --rm -v "$(pwd):/work:ro,Z" hadolint:<version>-rhhi /work/Dockerfile
# JSON output for machine parsing
podman run --rm -v "$(pwd):/work:ro,Z" hadolint:<version>-rhhi --format json /work/Dockerfile
# Ignore specific rules
podman run --rm -v "$(pwd):/work:ro,Z" hadolint:<version>-rhhi --ignore DL3008 /work/Dockerfile
registry.access.redhat.com/hi/core-runtime (Red Hat Hardened)Content type
Image
Digest
sha256:f4d6e2b25…
Size
26.2 MB
Last updated
4 months ago
docker pull timothyswan/hadolint:v2.14.0-rhhi