What Is the OCI Distribution Specification? Registry APIs and Conformance
The OCI Distribution Specification defines HTTP APIs for exchanging content such as container images with registries. Learn the pull/push flow, what conformance promises, and how to diagnose common transfer errors.
What Is the OCI Distribution Specification? Registry APIs and Conformance
The OCI Distribution Specification defines HTTP API rules for exchanging content such as container images with registries. OCI Image Specification defines how an image is represented; Distribution defines how clients transfer it. Support for uploads, tag listing, deletion, and other features varies by registry, so check the conformance category your task needs.
The OCI overview distinguishes the broad roles of Image, Distribution, and Runtime. This article focuses on the Distribution API flow and what “OCI compatible” does and does not promise.
What does Distribution standardize?
It defines the request/response contract between a client and a registry, not a specific product. A registry is the API service; a repository groups manifests, blobs, and tags. A blob is binary content addressed by digest. A manifest is JSON that references blobs or other manifests. A tag is a human-readable pointer to a manifest. Clients commonly pull a manifest and then its configuration and layer blobs; a push usually uploads blobs first and the manifest last. The specification does not dictate storage, replication, caching, or UI implementation.
| Operation | Example path | Purpose |
|---|---|---|
| Check API | GET /v2/ | Basic discovery endpoint; it may also be used for auth. One response does not mean all access is granted. |
| Get manifest | GET /v2/<name>/manifests/<tag-or-digest> | Requests a manifest or index; Content-Type identifies its type. |
| Get blob | GET /v2/<name>/blobs/<digest> | Retrieves referenced content by digest; clients should verify the response body. |
| Check existence | HEAD on a manifest/blob path | Checks existence and digest/size headers without downloading the body. |
| Start upload | POST /v2/<name>/blobs/uploads/ | Common session flow returning a Location for the upload. |
| List tags | GET /v2/<name>/tags/list | Queries repository tags; this is Content Discovery. |
<name> is the repository path; <tag-or-digest> is a tag or manifest digest. These paths show the protocol shape, not a vendor setup guide.
What does OCI conformance promise?
The API categories are Pull, Push, Content Discovery, and Content Management. A conforming registry MUST support every Pull API at minimum. The other categories are SHOULD. A registry claiming conformance to a category MUST implement all APIs in it. Thus “supports OCI” alone does not establish that upload, tag browsing, deletion, or referrers queries are available. Management may include deletion, but product policy can disable it. Check product docs or conformance results for the feature you need.
What is the usual transfer order?
A pull commonly fetches the manifest and follows its descriptors to fetch blobs. A push usually uploads configuration and layer blobs, then publishes the manifest. Blob uploads may be chunked or monolithic. In a simple session flow, the client sends POST /v2/<name>/blobs/uploads/, receives a URL, then uses that returned Location with PUT to send the blob. The registry can return 201 Created on completion. Do not construct the URL yourself: it can carry important path or query data. Some registries offload content to another host; clients MUST NOT forward Authorization across host boundaries unless explicitly configured.
For example, CI uploads blobs and publishes a manifest under team/api:2.4.1. If the manifest points to a missing blob, the registry may return MANIFEST_BLOB_UNKNOWN. Check that each referenced blob was uploaded to the intended repository; changing the tag will not fix a missing blob.
Which errors should I investigate?
404 Not Found on a manifest or blob: check repository, tag, or digest. Since tags can move, compare a digest to identify expected content. MANIFEST_BLOB_UNKNOWN after push means a referenced blob or manifest is unknown to that repository. DIGEST_INVALID means the supplied digest did not match uploaded bytes; check whether content changed and what data was hashed. For redirects, follow them as supported but do not send authorization to another host unless explicitly configured.
The referrers API for related artifacts such as signatures and SBOMs was added in Distribution Specification 1.1. On a 404, the spec requires a compatibility fallback to the referrers-tag method. Check client fallback and registry support before concluding that no related artifact exists.
How is this different from Image and Runtime?
Image describes manifests, indexes, configs, and layers. Distribution defines HTTP APIs to store, query, and transfer that content through a registry. Runtime describes the filesystem bundle prepared from an image and container execution requirements. A successful pull does not prove platform selection or process startup will succeed. See the OCI image format guide and container runtime guide.
Summary
OCI Distribution is an API contract for exchanging content with registries, not an image format or container engine. Pull is the minimum required category; other capabilities have separate conformance claims. During an incident, inspect the path, HTTP status, digest, referenced blobs, and redirect boundary.
References
[OCI Distribution Specification](https://github.com/opencontainers/distribution-spec/blob/main/spec.md)
[OCI Image Specification](https://github.com/opencontainers/image-spec)
[OCI Runtime Specification](https://github.com/opencontainers/runtime-spec)
The OCI Distribution Specification was checked on 2026-11-23. Paths illustrate the specified API and were not executed. Check each provider's docs for authentication, limits, retention, and deletion policies.