· 5 min
Docker Images: Pin Digests or Watch :latest Ship a Different Binary
A green CI build on python:3.11-slim:latest became a Saturday outage when prod pulled a new digest. Pin the bytes and promote the same image.
- #docker
- #ci-cd
All stacks · Platform & IaC
Local stacks, image discipline, and the unit of pipeline compute.
· 5 min
A green CI build on python:3.11-slim:latest became a Saturday outage when prod pulled a new digest. Pin the bytes and promote the same image.
Docker is the unit of local and CI compute for pipelines: the image that runs the DAG, the dbt job, and the Playwright-less SQL test. Image discipline — pin bases, do not copy secrets, keep layers small — is the production skill, not “I ran postgres in compose.”
For local and many batch jobs on ECS/Cloud Run/batch, yes. Kubernetes is orchestration of containers, not a requirement to use images.
A small set of blessed images beats 40 snowflake Dockerfiles. Add a package when the team needs it, not per-DAG art.
Because someone ran it on the runner’s Python. The job should run the same image in CI and prod. That is the whole point.