An OCI image is a manifest that references a config plus a list of layers; an OCI runtime unpacks those layers into an isolated namespace and starts the process defined in the config.
The image specification describes a layered structure. Each image has a config (JSON: environment, entrypoint, working directory, labels) and one or more layers (tarballs of filesystem changes). A manifest ties them together: it lists the config and the layers, each referenced by a content-addressable digest. A manifest index (or "manifest list") allows multiple platform-specific manifests (linux/amd64, linux/arm64) to live under one tag, so a client can pull the right one for its architecture. Every artifact is content-addressed: the digest of a layer is the SHA-256 of the tar, and changing a single byte changes the digest and therefore the whole image identity.
graph TD T[Tag: nginx:latest] --> I[Manifest index] I --> M1[Manifest linux/amd64] I --> M2[Manifest linux/arm64] M1 --> C[Config JSON] M1 --> L1[Layer 1 tar] M1 --> L2[Layer 2 tar] M1 --> L3[Layer 3 tar]
The runtime specification defines what happens next. A compliant runtime receives an OCI runtime bundle — a directory with the unpacked filesystem, the config JSON, and optionally other files — and executes the process described in the config inside an isolated namespace. The runtime is responsible for creating the namespaces, setting up cgroups and seccomp filters, executing the entrypoint, and reporting the exit code. runc is the reference implementation; crun is a faster alternative; gVisor and Kata Containers are OCI runtimes with stronger isolation models.
Working with OCI artifacts in practice
Pull by digest, not by tag
Tags are mutable; digests are not. A deploy that references
nginx@sha256:...is pinned. A deploy that referencesnginx:latestis a moving target.Keep images small and layered
Each layer is downloaded and cached independently. Reorder Dockerfile instructions so that rarely changing layers come first, and combine RUN commands to reduce layer count.
Sign and verify images
Cosign, Notation, and Sigstore add OCI artifacts that sign manifests. A policy engine (Kyverno, OPA) can reject unsigned images at admission time. Signing and verification are OCI extensions, not bolt-ons.
Mirror to a local registry for reproducibility
Registries are mutable infrastructure. Mirror images to a registry you control, pinned by digest, for any environment that needs to be reproducible across time.
The distribution specification defines the HTTP API that registries expose. It covers manifest push and pull, layer upload and download, tag listing, and now referrers API for querying artifacts that reference another artifact (signatures, SBOMs, attestations). This is why a single image can be pulled by Docker CLI, containerd's ctr, Podman, CRI-O, and any other client that implements the spec, from any registry that implements the spec — without per-tool coordination.