Skip to content

FAQ

Is Docker an OCI-compliant runtime?

Docker is a platform that includes an OCI-compliant image format and uses an OCI-compliant runtime (containerd, which in turn uses runc). Docker itself is not a runtime; it is a build system, image format, and client that sits on top of OCI components. When people say "Docker is OCI-compliant", they mean the Docker ecosystem implements the specifications, not that Docker itself is the runtime.

What is the difference between an OCI image and a Docker image?

An OCI image is a specification-defined artifact with a config, layers, and a manifest. A Docker image, in its modern form, is an OCI image produced by Docker's tooling. The formats converged in 2017 when Docker donated its image format to the OCI. Older Docker images (pre-v2 schema) had a slightly different structure, but current Docker images are OCI-compliant.

What is the runtime specification for?

The runtime specification defines the contract between a container runtime and the operating system: how the runtime creates namespaces, sets up cgroups, applies seccomp, executes the process, and reports exit codes. It is the interface that allows Kubernetes to use runc, crun, gVisor, or Kata Containers interchangeably: each one implements the OCI runtime contract, so kubelet does not need to know which one is in use.

Do I need to know the OCI specification to use containers?

No. The specifications are for tool builders and platform engineers. Application developers use Docker, Podman, or a Kubernetes workflow, and the specifications recede into the background. But understanding the OCI is what explains why images are portable, why digests matter, and why signing and SBOMs work the way they do.

What is the referrers API?

The referrers API, added to the distribution specification in v1.1 (2023), lets a registry answer "what other artifacts refer to this manifest?". Signatures, SBOMs, and attestations are stored as OCI artifacts that refer to the image manifest, and clients can query them without knowing their tags in advance. This is what makes artifact attachment portable: any compliant registry can store them, any compliant client can retrieve them.