DELAPARRA
Index
Color
NL
Category: Docker

digest

Explained by Updated

What is digest?

digest: A content-addressable SHA256 hash that identifies an exact image, immutably. Unlike a tag, a digest never moves. A digest is a SHA256 hash that identifies one exact Docker image. A reference like myapp@sha256:9b2c... always points to the same image content, byte for byte. Tags are different. myapp:latest or even node:22 can point to a new image tomorrow, after someone pushes an update. That is convenient, but it means the same tag can produce different results over time.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about digest

What should you keep in mind with digest?

Digests give you certainty. Deploying by digest guarantees production runs exactly the image you tested. Many teams tag images for humans, such as with the commit hash, and let their deploy tooling resolve tags to digests. For base images in a Dockerfile, pinning a digest prevents surprise changes, at the cost of updating it yourself when security fixes come out.

What does an example of digest look like?

docker pull myapp@sha256:9b2c...e1

At a glance

CategoryDocker
Explained by
Updated

More Docker terms

All terms starting with D

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.