diff --git a/runtime.md b/runtime.md index be504588..2120f08f 100644 --- a/runtime.md +++ b/runtime.md @@ -5,8 +5,8 @@ The runtime state for a container is persisted on disk so that external tools can consume and act on this information. The runtime state is stored in a JSON encoded file. It is recommended that this file is stored in a temporary filesystem so that it can be removed on a system reboot. -On Linux based systems the state information should be stored in `/run/oci/containers`. -The directory structure for a container is `/run/oci/containers//state.json`. +On Linux based systems the state information should be stored in `/run/opencontainer/containers`. +The directory structure for a container is `/run/opencontainer/containers//state.json`. By providing a default location that container state is stored external applications can find all containers running on a system. * **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 ```json { - "id": "oci-container", + "id": "oc-container", "pid": 4422, "root": "/containers/redis" } diff --git a/runtime_config_linux.go b/runtime_config_linux.go index 17db82df..b928fdad 100644 --- a/runtime_config_linux.go +++ b/runtime_config_linux.go @@ -3,7 +3,7 @@ package specs import "os" // LinuxStateDirectory holds the container's state information -const LinuxStateDirectory = "/run/oci/containers" +const LinuxStateDirectory = "/run/opencontainer/containers" // LinuxRuntimeSpec is the full specification for linux containers. type LinuxRuntimeSpec struct {