Reading OCI Runtime config.json: Bundles and Process Settings
The OCI Runtime Specification defines a local bundle and runtime lifecycle. Learn key config.json fields and why create prepares the environment while start launches the process.
Reading OCI Runtime config.json: Bundles and Process Settings
The OCI Runtime Specification defines a container's execution configuration and lifecycle. A local bundle commonly contains config.json and the container root filesystem. The runtime's create operation prepares the requested environment; only start runs the application described by process. A container in created state without an active process can therefore be normal.
The container runtime guide explains layers such as containerd and runc; the containerd guide focuses on Kubernetes nodes. This article focuses on reading the lower-level OCI bundle and distinguishing create from start failures.
What is in an OCI bundle?
A standard bundle is a local directory. Its root contains a file named exactly config.json and the root filesystem referenced by root.path. A conventional example is bundle/config.json alongside bundle/rootfs/. The name rootfs is not required; the path must resolve from the bundle and the directory must exist.
Which fields should I inspect first?
ociVersion names the specification version the bundle follows; valid JSON does not prove a runtime supports that version or every field. root.path locates the container's root filesystem. On POSIX/Linux it may be relative to the bundle; the directory must exist. If root.readonly is true, that filesystem is read-only inside the container.
process.args describes the executable and its arguments. On Linux/POSIX, when supplied, it needs at least one entry and the first identifies the program. create does not execute it. process.cwd must be an absolute working-directory path valid inside the root filesystem. process.env passes entries such as PORT=8080 to the process; secrets need a separate safe management path.
mounts adds mounts beyond the root filesystem. Each destination is inside the container, and the runtime applies entries in array order. Review overlapping destinations and option effects. linux.namespaces describes Linux isolation boundaries such as PID, network, and mount namespaces; support and defaults depend on runtime and kernel.
Windows, Solaris, and FreeBSD use platform-specific fields and path rules. Do not copy Linux settings unchanged to another platform. Configuration is input to a runtime, not proof that a security policy or application compatibility is appropriate.
How are create and start different?
OCI operation names define behavior, not a particular command-line syntax. A higher-level tool may expose these steps through a different CLI or API.
With a bundle and ID, create constructs the configured environment and reaches created, but does not yet run the user program. Later edits to config.json do not change that container. start launches the process and its state becomes running. After the process exits or is killed, the state becomes stopped. delete removes resources created during that container's create phase; it must not remove external resources it did not create.
Runtime state includes fields such as id, status, and bundle path. This low-level state is different from Kubernetes conditions such as Pod ready.
How do I separate configuration and launch failures?
If create fails, check whether the runtime supports ociVersion, whether root.path exists, whether mount paths and options are valid, and whether requested namespaces or permissions are available. The specification requires an error when the requested environment cannot be created.
If create reaches created but no process is visible, that may be expected before start. If start fails, check that process is present, the executable exists in the root filesystem, cwd is a valid absolute path, and required libraries, permissions, and platform match. Query whether the state is created, running, or stopped to choose the next diagnostic step.
Editing a bundle does not update an already-created container. Follow the supervising engine's documented recreate or restart procedure, and check recovery and rollback steps before manually changing a managed bundle.
Summary
The OCI Runtime Specification is a contract for bundle configuration and local container lifecycle, not registry transfer. create prepares the environment; start launches the program. Diagnose environment creation and process launch as separate stages.
References
[OCI Runtime Specification: Filesystem Bundle](https://github.com/opencontainers/runtime-spec/blob/main/bundle.md)
[OCI Runtime Specification: Configuration](https://github.com/opencontainers/runtime-spec/blob/main/config.md)
[OCI Runtime Specification: Lifecycle and State](https://github.com/opencontainers/runtime-spec/blob/main/runtime.md)
[OCI Runtime Specification: Linux Configuration](https://github.com/opencontainers/runtime-spec/blob/main/config-linux.md)
[OCI Runtime Specification v1.3.0 release](https://github.com/opencontainers/runtime-spec/releases/tag/v1.3.0)
The OCI Runtime Specification documents and v1.3.0 release were checked on 2026-11-23. The example is explanatory and was not validated or run with a runtime. Supported fields and operating procedures depend on implementation, version, and platform.