Images & Registries
Cheat sheet · https://pcornel.dk/topic.php?topic=6074
Answer
Images are layered, read-only filesystems plus metadata, stored in registries (Docker Hub, GHCR, ECR, Harbor) and referenced by name:tag or immutable digest.
Remember
Pin production images by digest or immutable tags. Use a private registry or mirror to avoid rate limits. Scan and sign images before deployment.
First checks
docker image ls --digests— local images with digestsdocker ps -a— containers and exit codesdocker logs <c>— container outputdocker inspect <c>— config, mounts, network, state
Verify in this order
build → tag → push to registry → pull by tag/digest → run
Where it usually breaks
A successful pull does not prove the intended version was selected, a familiar tag does not prove immutability, and a signed image does not prove its runtime configuration or application behavior is safe. Mirror/cache behavior can also make stale content look like an origin issue.
Images & Registries verification boundary matrix
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | Image layers and copy-on-write | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | Tags vs immutable digests / Pull/push workflows | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | Registry authentication | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Private registries and mirrors | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6074