Oh My Algorithm
Concept GuideLayer Transfer · Digests

Registry push & pull

A registry doesn't move images whole. An image is a manifest — a list of layers — plus the layers, and push and pull transfer only the layers the other side is missing. Each layer is identified by a content hash (its digest), so uploading many images built on the same base still stores that base layer exactly once.

01 Concept at a Glance

Interactive Step-by-Step
Registry · Layer-by-Layer push & pull
💻Local Docker
myapp:1.2.0 built
☁️Registry
myapp:1.1.0 stored
send manifest
5 layer digests
reply: layers already held
4 present · 1 missing
upload only the missing layer
app layer, 12 MB
commit tag
myapp:1.2.0
docker pull request
myapp:1.2.0
manifest response
5 layer digests
download only what's missing
app layer, 12 MB

A registry doesn't move images as a single blob. An image is a manifest — a list of layers — plus the layers themselves.

Logic Node1 / 8

02 Understand It Simply

For Everyone
🔑Analogy

Rather than photocopying a whole book, you send the table of contents (the manifest) first, skip the chapters they already have, and post only the missing ones.

💡In Plain Words

push sends the manifest's layer digests to find out which layers already exist, then uploads only the rest.

pull does the same in reverse, fetching only what's missing locally.

From the second deploy on, typically just the app layer moves.

Because digests are content-based, different tags with identical contents resolve to the same layer.

📍Where It's Used
  • Cutting CI/CD deploy times
  • pinning releases by tag or digest
  • running a private registry
  • and ordering layers to reduce transfer size

03 Frequently Asked Questions

FAQ
What is Registry push & pull?+

A registry doesn't move images whole. An image is a manifest — a list of layers — plus the layers, and push and pull transfer only the layers the other side is missing. Each layer is identified by a content hash (its digest), so uploading many images built on the same base still stores that base layer exactly once.

Where is Registry push & pull used?+

Cutting CI/CD deploy times, pinning releases by tag or digest, running a private registry, and ordering layers to reduce transfer size.

What's a simple analogy for Registry push & pull?+

Rather than photocopying a whole book, you send the table of contents (the manifest) first, skip the chapters they already have, and post only the missing ones.

Guide Progress0%