OCI Standard
The Open Container Initiative (OCI) standard defines open specifications for container image formats and runtimes, maintained under the Linux Foundation. Images built with Docker follow it, so they run on containerd, CRI-O, Podman, and other OCI runtimes.
What OCI standardises
Before OCI, image and runtime formats were whatever Docker defined. OCI, founded in 2015, published open specifications so tools could interoperate. Docker donated runc, the reference runtime, to the project.
The specifications
- Image spec: how an image is packaged: a manifest, a config, and layer tarballs, referenced by digest.
- Runtime spec: how to run a container from an unpacked filesystem bundle, which runc implements.
- Distribution spec: the API registries use to push and pull images.
Why it matters
# Build with Docker, run with Podmandocker build -t payment-api:v3.1.0 .docker save payment-api:v3.1.0 | podman loadpodman run --rm payment-api:v3.1.0 # Daemonless buildsbuildah bud -t payment-api:v3.1.0 .Kaniko, Buildah, BuildKit, and Podman all produce images that OCI runtimes can run, so you are not locked to one daemon. This is also why Kubernetes can use containerd or CRI-O with images built by Docker.
Inspect an image index
docker buildx imagetools inspect nginx:1.27# shows the manifest list and per-platform digestsGotchas
Format is rarely the issue today. Occasional problems come from older registries or scanners that mishandle newer manifest types, such as multi-architecture image indexes, until updated.
RememberA Docker-built image is effectively an OCI image. You do not convert it to use another runtime.
Frequently Asked Questions
Why does OCI matter if I just use Docker?
It guarantees that images you build with Docker run on other compliant runtimes like containerd, CRI-O, and Podman, and that registries and tools interoperate. This is what lets Kubernetes swap runtimes without rebuilding images.
Are Docker images and OCI images different?
Modern Docker builds produce OCI-compatible images, so in practice they are the same thing for runtime purposes. The older Docker-specific manifest format still exists but is widely supported.
What is runc?
runc is the reference OCI runtime. It creates the namespaces and cgroups and starts the container process, and containerd and Docker call it under the hood.