The OCI Distribution Spec Explained for Practitioners
Deep dive into the OCI Distribution Specification: standardizing API endpoints, manifest uploads, blob chunking, tag listing, and content-addressable storage.
Published on • November 18, 2026
AI Assistant

Before the Open Container Initiative (OCI) introduced formal specifications, container registry implementations relied on proprietary or vendor-locked APIs. The OCI Distribution Specification standardizes the HTTP protocol for distributing container images and arbitrary OCI artifacts across compliant registries.
In this deep dive, we will explore the core concepts of the OCI Distribution Spec, its essential REST API endpoints, how manifest and blob uploads function, and how modern registries achieve cross-vendor interoperability.
What is the OCI Distribution Spec?
The OCI Distribution Specification defines an open HTTP API protocol for discovering, fetching, pushing, and managing content-addressable OCI artifacts.
+-----------------------------------------------------------------------------------+
| OCI Open Standards Suite |
+-----------------------------------------------------------------------------------+
| 1. OCI Image Spec : Standardizes image manifest format & layer archives |
| 2. OCI Runtime Spec : Standardizes container execution config & runc runtime |
| 3. OCI Distribution Spec: Standardizes registry HTTP API endpoints & push/pull |
+-----------------------------------------------------------------------------------+
Because of the OCI Distribution Spec, any OCI-compliant client (Docker CLI, Podman, Skopeo, Helm, or ORAS) can seamlessly push and pull artifacts to and from any compliant registry (Harbor, AWS ECR, GitHub Packages, Google Artifact Registry, or Azure Container Registry).
Core API Endpoints Reference
All OCI Distribution endpoints are rooted under the /v2/ prefix.
| HTTP Method | Endpoint Path | Description |
|---|---|---|
GET | /v2/ | API version check (returns 200 OK or 401 Unauthorized). |
GET | /v2/<name>/manifests/<reference> | Fetch an image manifest or index by tag or digest. |
PUT | /v2/<name>/manifests/<reference> | Upload an image manifest or attach a tag. |
GET | /v2/<name>/blobs/<digest> | Download a specific filesystem layer blob by SHA-256. |
POST | /v2/<name>/blobs/uploads/ | Initiate a chunked or monolithic layer blob upload. |
PATCH | /v2/<name>/blobs/uploads/<uuid> | Upload chunked binary layer data. |
PUT | /v2/<name>/blobs/uploads/<uuid>?digest=<hash> | Finalize blob upload and verify digest. |
GET | /v2/<name>/tags/list | List all tags associated with a repository. |
The OCI Push Protocol (Step-by-Step)
Pushing an image manifest index and layers follows a strict sequence:
+----------+ 1. POST /v2/myrepo/blobs/uploads/ +----------+
| | -------------------------------------------------------> | |
| | <------------------------------------------------------- | |
| | 2. HTTP 202 Accepted (Location: /v2/.../uploads/uuid) | |
| Client | | OCI |
| (docker) | 3. PUT /v2/myrepo/blobs/uploads/uuid?digest=sha256:4c... | Registry |
| | (Streams layer binary bytes) | |
| | -------------------------------------------------------> | |
| | <------------------------------------------------------- | |
| | 4. HTTP 201 Created (Blob saved in storage) | |
| | | |
| | 5. PUT /v2/myrepo/manifests/v1.0.0 | |
| | (Uploads Manifest JSON payload) | |
| | -------------------------------------------------------> | |
| | <------------------------------------------------------- | |
| | 6. HTTP 201 Created (Image tag created!) | |
+----------+ +----------+
Key Technical Rule: Blobs First, Manifests Last!
An OCI-compliant registry will reject a manifest PUT request if any layer blob SHA-256 digest referenced inside the manifest is not already present in the registry storage engine.
Interacting Directly with OCI API via curl
You can test any OCI-compliant registry endpoints directly using curl:
# 1. Verify API readiness
curl -i https://registry.example.com/v2/
# 2. List repository tags
curl -s https://registry.example.com/v2/my-app/tags/list | jq .
# 3. Fetch image manifest (Specify OCI Manifest v2 header)
curl -s -H "Accept: application/vnd.oci.image.manifest.v1+json" \
https://registry.example.com/v2/my-app/manifests/v1.0.0 | jq .
OCI Artifacts Beyond Container Images
The OCI Distribution Spec is not limited to container layers. Modern registries use the spec to store and distribute arbitrary OCI artifacts using tools like ORAS (OCI Registry As Storage):
- Helm Charts:
helm push mychart-1.0.0.tgz oci://registry.example.com/charts - WebAssembly (Wasm) Binaries:
oras push registry.example.com/wasm/app:v1 app.wasm - Software Bill of Materials (SBOMs): Pushed directly as associated OCI manifest attachments.
Summary
The OCI Distribution Specification provides the unified protocol foundation for the entire cloud-native container ecosystem, ensuring seamless interoperability across clients, build engines, and enterprise registries.