Skip to content

Commit 1ebe348

Browse files
author
Brandon Philips
committed
runtime: use opencontainer vs oci
In an effort to be more discoverable and self-describing change out the term "oci" for "opencontainer". We should consider using this as the prefix for global namespaces going forward as oc has conflicts with existing tools and oci is the name of the initiative not the specs.
1 parent 3b330ad commit 1ebe348

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

runtime.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
The runtime state for a container is persisted on disk so that external tools can consume and act on this information.
66
The runtime state is stored in a JSON encoded file.
77
It is recommended that this file is stored in a temporary filesystem so that it can be removed on a system reboot.
8-
On Linux based systems the state information should be stored in `/run/oci/containers`.
9-
The directory structure for a container is `/run/oci/containers/<containerID>/state.json`.
8+
On Linux based systems the state information should be stored in `/run/opencontainer/containers`.
9+
The directory structure for a container is `/run/opencontainer/containers/<containerID>/state.json`.
1010
By providing a default location that container state is stored external applications can find all containers running on a system.
1111

1212
* **version** (string) Version of the OCI specification used when creating the container.
@@ -23,7 +23,7 @@ The root directory to the bundle is provided in the state so that consumers can
2323

2424
```json
2525
{
26-
"id": "oci-container",
26+
"id": "oc-container",
2727
"pid": 4422,
2828
"root": "/containers/redis"
2929
}

runtime_config_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package specs
33
import "os"
44

55
// LinuxStateDirectory holds the container's state information
6-
const LinuxStateDirectory = "/run/oci/containers"
6+
const LinuxStateDirectory = "/run/opencontainer/containers"
77

88
// LinuxRuntimeSpec is the full specification for linux containers.
99
type LinuxRuntimeSpec struct {

0 commit comments

Comments
 (0)