Containerization
medium

Pregunta de Containerization #019e3a4f

Enunciado de la Pregunta
Containerization
#oci
#runtime
#runc
#container
#specification
Medio

What is the reference implementation of the OCI runtime specification?

A

lxc

B

cri-o

C

runc

Correcto
D

docker

Explicación Oficial / Explicaciones de la Comunidad

The Open Container Initiative (OCI) Runtime Specification defines the standard for container runtimes. The reference implementation of this specification is runc.

How it Works:
runc is a lightweight, portable container runtime that directly implements the OCI runtime spec. It creates and runs containers by setting up namespaces, cgroups, and other kernel features as defined in the spec. It is the default runtime for Docker and is used by many other container platforms.

Why runc is Correct:
runc is the official reference implementation of the OCI runtime specification. It is maintained by the OCI and serves as the canonical example of how to build a compliant runtime.

Why Other Options Are Incorrect:

  • lxc is an older container runtime that predates the OCI specification. It uses its own configuration and does not implement the OCI runtime spec.
  • cri-o is a Kubernetes Container Runtime Interface (CRI) implementation that uses runc under the hood, but it is not the reference implementation of the OCI runtime spec itself.
  • docker is a complete container platform that includes a runtime, but its default runtime is runc. Docker itself is not the reference implementation; it is a higher-level tool that leverages runc.