Hadolint fails with `DL3008 Pin versions in apt get install` on every Dockerfile
BeginnerTroubleshootingContainer image and IaC scanning
Answer
Likely causes → Packages installed without versions make builds non-reproducible, so the rule fires.
Diagnose → hadolint Dockerfile
Fix → Pin where it matters or document an ignore:
RUN apt-get update && apt-get install -y --no-install-recommends curl=8.5.0-2ubuntu10.6 \
&& rm -rf /var/lib/apt/lists/*
Or in .hadolint.yaml: ignored: [DL3008] with a team decision recorded.
Prevent → Agree a Dockerfile standard once; pinned base image digests matter more than every apt version.
More on Container image and IaC scanning
Trivy fails the build on 14 HIGH/CRITICAL CVEs in the base image, all with "Fixed Version" emptyBeginner`FATAL ... failed to download vulnerability DB: ... TOOMANYREQUESTS: retry-after` from Trivy in CIIntermediateTrivy in an air-gapped runner fails with `failed to download vulnerability DB` even though you copied `db.tar.gz`AdvancedTrivy and Grype report different CVE counts for the same imageIntermediate`.trivyignore` entries are ignored and the build still fails on the same CVEBeginnerTrivy reports a critical CVE in a Go binary built from your own code, in package `stdlib`Intermediate