Interview Prep/Docker/Multi-stage builds, cache, tags and registries

What does it mean that `docker push` says "Layer already exists"?

BeginnerScenarioMulti-stage builds, cache, tags and registries
Answer

Situation read → Registries store blobs by content digest.

What I'd do → Nothing; it is a feature. The registry already has that layer (from a prior push or another repo with cross-repo mount), so the client skips upload. Only the manifest and changed layers transfer.

Why → This is why stable base layers and good ordering make pushes and pulls fast.

Interview tip → Same logic speeds pulls: nodes only fetch missing layers.

All Docker questions Roadmap: Docker & containers

More on Multi-stage builds, cache, tags and registries