From 6042999e6864615ddf5636583ae901125d59f2c0 Mon Sep 17 00:00:00 2001 From: Renaud Gaubert Date: Wed, 20 May 2020 21:19:03 +0000 Subject: [PATCH] Define State for container and runtime namespace Signed-off-by: Renaud Gaubert --- runtime.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime.md b/runtime.md index c45046b1f..829327251 100644 --- a/runtime.md +++ b/runtime.md @@ -22,7 +22,9 @@ The state of a container includes the following properties: * `stopped`: the container process has exited (step 7 in the [lifecycle](#lifecycle)) Additional values MAY be defined by the runtime, however, they MUST be used to represent new runtime states not defined above. -* **`pid`** (int, REQUIRED when `status` is `created` or `running` on Linux, OPTIONAL on other platforms) is the ID of the container process, as seen by the host. +* **`pid`** (int, REQUIRED when `status` is `created` or `running` on Linux, OPTIONAL on other platforms) is the ID of the container process. + For hooks executed in the runtime namespace, it is the pid as seen by the runtime. + For hooks executed in the container namespace, it is the pid as seen by the container. * **`bundle`** (string, REQUIRED) is the absolute path to the container's bundle directory. This is provided so that consumers can find the container's configuration and root filesystem on the host. * **`annotations`** (map, OPTIONAL) contains the list of annotations associated with the container.