Skip to content

Commit 34cd33b

Browse files
author
Mrunal Patel
committed
Merge pull request #148 from philips/change-prefix-to-oc
runtime: use opencontainer vs oci
2 parents bf52e72 + 1ebe348 commit 34cd33b

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)