Docker base image uses a floating latest tag
May 23, 2026 ยท View on GitHub
Playbook ID: floating-docker-base-image
Category: build
Severity: medium
Tags: source, docker, build, reproducibility, image
What this failure means
A Dockerfile uses a :latest base image tag, so rebuilds can pull different bytes over time without a source change.
Common log signals
(This playbook uses source-code pattern matching rather than log signals.)
Diagnosis
The Docker base image is mutable. CI builds that rely on :latest can become non-reproducible when the upstream image moves.
Fix steps
- Replace
:latestwith a specific version tag that matches the supported runtime. - For release images, pin the base image by digest or use an automated dependency update workflow.
- Rebuild the image and commit the intended base version in the Dockerfile.
Validation
- Run
faultline inspect .from the repository root and confirm this source finding is absent or intentionally mitigated. - Build the Docker image from a clean cache and confirm it uses the pinned base image.
Likely files to inspect
Dockerfiledocker/Dockerfile.github/workflows/*.yml
Run Faultline
faultline analyze build.log
faultline explain floating-docker-base-image
faultline workflow build.log --json --mode agent
Search phrases this page answers
- Docker base image uses a floating latest tag
- Build: docker base image uses a floating latest tag
- GitHub Actions docker base image uses a floating latest tag
- faultline explain floating-docker-base-image
- Docker docker base image uses a floating latest tag
Generated from playbooks/bundled/source/floating-docker-base-image.yaml. Do not edit directly โ run make docs-generate.