What Is a Container Registry? Using Image Repositories, Tags, and Digests
Learn what registries, repositories, tags, and digests do, how to push and pull images, and how to choose a registry with suitable access and retention policies.
What Is a Container Registry? Using Image Repositories, Tags, and Digests
A container registry is a service that stores images and related content so clients can upload or download them. A repository groups content such as manifests, blobs, and tags. Understanding the registry hostname, namespace, repository, and tag in an image reference helps you track where an image goes and which version a client requests.
How are a registry, repository, and image reference different?
The OCI Distribution Specification defines a registry as a service implementing distribution APIs and a repository as a scope for content within that service. An image is made up of a manifest and configuration and layer blobs. The manifest points to the components a client needs to retrieve.
In registry.example.com/team/api:2.4, registry.example.com is the registry host, team the namespace, api the repository, and 2.4 the tag. Exact references depend on registry and path conventions. Docker defaults to Docker Hub when the host is omitted and to latest when the tag is omitted. latest is simply a default tag name; it does not guarantee the newest release.
A tag is a human-readable pointer to a manifest and can be moved to another manifest. A digest is derived from a cryptographic hash of content. For reproducible deployments, use a reference such as repository@sha256:... when you need to identify specific content. Pinning a digest also means updates will not happen automatically, so plan how to refresh it for security fixes.
What happens during push and pull?
A push uploads the necessary blobs and then a manifest; a pull retrieves the manifest and the blobs it references. The OCI specification describes blob-first, manifest-last as the typical upload order. Clients can verify downloaded content against its digest to check that it matches the manifest.
A registry is more than a file directory: it provides distribution APIs, authentication, and repository policies. An OCI-conformant registry must support pull APIs at minimum. Push, content discovery, and content management are separate API categories that implementations are recommended to support, so check how a particular service handles listing, deletion, and retention.
A basic workflow for pushing an image
This Docker CLI example assumes Docker is running, you have a registry account, and your account can push to the target repository. Replace the example hostname and path with your own:
docker build -t api:2.4 .
docker login registry.example.com
docker image tag api:2.4 registry.example.com/team/api:2.4
docker image push registry.example.com/team/api:2.4tag gives a local image another name; push uploads it. Record the digest printed after the push. Another environment can fetch by tag or by the recorded digest:
docker image pull registry.example.com/team/api:2.4
docker image pull registry.example.com/team/api@sha256:<verified-digest>Replace the placeholder with the actual digest. A tag resolves to the manifest it currently points to; the digest reference selects specific content. Output and authentication vary by CLI and registry. These are documented procedure examples, not commands tested in this environment.
To verify a push, check that the expected repository and tag or digest appear in the registry, then pull from a separate client. For unauthorized or denied, check that the login hostname and port match the push reference and that your account has write access. Certificate errors can indicate an untrusted or misnamed TLS certificate. Configure a trusted certificate chain rather than disabling TLS verification.
How should you choose a registry?
A hosted public registry is quick to start and has less infrastructure to operate, but review organization access, storage and download limits, data location, price, and retention. A cloud-managed private registry can integrate with cloud permissions and networks, but evaluate its access model and costs. Self-hosting gives more control over storage and integration; your team also owns TLS, access control, durable storage, backup and recovery, monitoring, upgrades, and vulnerability response.
Do not expose a temporary development registry as a production service. CNCF Distribution labels its introductory deployment examples as testing configurations and says production deployments need TLS and access control. Separate principals that can push from credentials used by production clusters to pull, and understand which deployments depend on an image before deleting or pruning it.
Troubleshooting common failures
| Symptom | Check first | Response |
|---|---|---|
unauthorized or denied | Login host, repository path, push/pull rights | Log in to the correct host and review permissions |
| A different version is pulled | Whether the reference uses a movable tag | Record and pin a digest; update it deliberately |
manifest unknown or not found | Repository or tag spelling; push and pull paths | Compare the exact path and push result |
| Certificate trust error | Server certificate, hostname, client trust store | Install a valid TLS certificate and trust chain |
| Images keep using storage | Deletion, retention, and cleanup policy | Check product-specific lifecycle controls and recovery needs |
Summary
A registry distributes container images; repositories group manifests, blobs, and tags within it. Tags are convenient but movable, while digests identify specific content and help make deployment records reproducible. Choose a registry by reviewing authentication, TLS, retention, cost, and who owns recovery—not just whether push and pull work.
Sources
[OCI Distribution Specification](https://github.com/opencontainers/distribution-spec/blob/main/spec.md)
[Docker: Tag an image](https://docs.docker.com/reference/cli/docker/image/tag/)
[Docker: Push an image](https://docs.docker.com/reference/cli/docker/image/push/)
[Docker: Pull by tag or digest](https://docs.docker.com/reference/cli/docker/image/pull/)
[Docker: Registry login and credential storage](https://docs.docker.com/reference/cli/docker/login/)
[CNCF Distribution: Deploy a registry](https://distribution.github.io/distribution/about/deploying/)
[CNCF Distribution: Configuration](https://distribution.github.io/distribution/about/configuration/)
[OCI image format](https://knowledge.linkspot.net/ko/articles/ab92d35f-73b7-4a7f-8165-21a86c3f1180)
[Image layers and storage](https://knowledge.linkspot.net/ko/articles/8ffef5b5-a5e9-444c-ba6f-4e9138cfd3a0)
Scope: based on the OCI Distribution Specification and Docker and CNCF Distribution documentation checked on 2026-11-22. Do not assume every service exposes the same discovery, deletion, or retention APIs.