Docker & Containers
Tags vs digests: reproducible builds
Friday's build passed and Monday's failed with the same Dockerfile and the same commit. A tag is a label someone can move, and a digest is a fingerprint no one can.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Docker & Containers
- Layer caching: order your Dockerfile for fast buildsBeginner · 5 min
A Node.js service rebuilds in over four minutes after every one-line edit because the dependency install runs again. The fix is moving two lines, and it works only once…
- Multi-stage builds and small imagesBeginner · 5 min
A Go service that compiles to a 14 MB binary ships as a 1.1 GB image, because the compiler came along for the ride. Multi-stage builds leave the toolbox behind.
- OCI image manifestBeginner · 4 min
OCI image manifest describes layers configuration and platform.
- Namespaces: what a container can seeBeginner · 5 min
Two containers on one host both say they are PID 1, both listen on port 80 and both call themselves app. Nothing is faked: each one is looking at its own private copy…
- Run as non-root and drop capabilitiesBeginner · 5 min
Root inside a container is still root as far as the kernel's permission checks go. Two changes cut that power down: run as a normal user and drop the capabilities you…
- SeccompBeginner · 4 min
Seccomp filters available system calls.