Private registry architecture
A private registry is an image distribution service with restricted access. It can be hosted by a provider or operated by your team. It needs storage, network reachability, authenticated access, trusted TLS and an operating plan; a running registry process alone is not a production service.
Worked example
Use this worksheet offline. Names and values are fictional; no live registry, credentials, Docker daemon or external requests are needed. Commands are illustrations, not observed results. Before separately authorized verification, identify the effective Docker endpoint, client credential configuration, builder and registry destination as applicable. Never disclose credential files or private context details.
Fictional architectureBuild identity -> TLS registry -> persistent blob storageDeployment identity -> TLS registry -> read-only repository accessOperator -> restricted management planeNo public listener; backup and restore plan requiredThe build identity needs write access only to its approved repositories. Deployment identities should normally have read-only access. TLS protects transport and validates the endpoint when certificates are checked correctly; authentication is still needed. Persistent storage keeps blobs and manifests beyond process restarts. Multiple registry replicas need a supported consistent backend and compatible configuration; separate local disks do not automatically share data. Plan monitoring, capacity, backup, recovery and certificate renewal before enabling access. Test a valid read, an authorized write and a denied write from a read-only identity in a disposable isolated lab. No registry is actually started in this worksheet. A restore plan includes compatible registry configuration, access policy and trusted TLS identity as well as data. Verify recovery with known retained manifest and blob digests, authorized reads and expected authorization denial; a running process alone is not proof of recovery.
Common mistake
If certificate validation fails, repair trust and hostname configuration. Do not mark an ordinary registry insecure as a general fix.
Manual practice
Draw the three identities and their permissions. Identify what must survive a registry restart and how a restore would be verified.
Worksheet: lab-fixtures/docker-registries-and-delivery/03-private-registry/scenario.txt.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Private registry architecture — Knowledge check
Reason about image distribution and safe delivery.
What should a deployment identity normally need?
Does TLS replace repository authorization?
Do separate local disks automatically synchronize replicas?