Image Tags and Digests
Cheat sheet · https://pcornel.dk/topic.php?topic=6124
Answer
Tags are mutable names for images (nginx:1.27, latest); digests (sha256:…) identify exact image content and never change.
Remember
latest and moving tags lead to surprises — use immutable version tags plus digests in production. Kubernetes imagePullPolicy: IfNotPresent with a reused tag can keep old images on nodes.
First checks
docker ps -a— containers and exit codesdocker logs <c>— container outputdocker inspect <c>— config, mounts, network, state
Verify in this order
tag → resolved to digest at pull → content
Where it usually breaks
Reusing a tag with imagePullPolicy IfNotPresent leaves old nodes running old content.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6124