Registry mirrors and pull-through caching
Worked example
This is an offline lesson. Data are fictional and Docker commands are unexecuted. Any optional execution requires an authorized disposable VM, a verified context, synthetic data, restricted access and no external transmission. Do not collect secrets or private output. Treat the worksheet as evidence to analyze, not a script to paste. Before any authorized observation confirm the actual endpoint, object identity, time window and output budget. Do not repair, restart or delete resources during this offline exercise.
Fictional policy:Approved Docker Hub cache: https://mirror.example.invalidRequired release: approved digest D (symbolic)Case A: cache has D and passes policyCase B: cache misses D; upstream unreachableCase C: cache returns unexpected digest ECandidate configuration fragment (not installed):{"registry-mirrors":["https://mirror.example.invalid"]}A Docker Hub pull-through cache can retrieve content from upstream on misses; warm content and registry availability are distinct. A registry mirror is not necessarily a complete offline copy, nor a mirror of every arbitrary registry. For A, verify the expected digest and the organization’s release policy before use. B requires an approved offline transfer or restored availability, not an arbitrary substitute. Reject C until the mismatch is resolved. Review TLS trust, access rules, private image handling, cache capacity and retention. Builder-specific mirrors can require a different configuration from Engine. The invalid example domain is deliberately nonfunctional; no pulls or daemon changes are intended. The mirror fragment is illustrative and cannot establish cache contents, upstream access or release provenance. Verify the exact digest and platform, and do not assume Engine mirror configuration controls a separate BuildKit builder.
Common mistake
A cached image is not automatically approved, current or complete.
Manual practice
For A–C decide accept, defer or reject and explain why. List two differences between a mirror and a preverified offline archive.
Worksheet: lab-fixtures/docker-engine-administration/04-registry-mirrors/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Registry mirrors and pull-through caching — Knowledge check
Interpret synthetic administration evidence and choose safe maintenance decisions.
What does a cache miss require in a pull-through design?
What if the returned digest differs from the approved digest?
What is registry-mirrors not guaranteed to provide?