Skip to content

Commit e548728

Browse files
author
Mrunal Patel
authored
Merge pull request #1045 from RenaudWasTaken/state-pid
Define State for container and runtime namespace
2 parents 237cc4f + 6042999 commit e548728

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ The state of a container includes the following properties:
2222
* `stopped`: the container process has exited (step 7 in the [lifecycle](#lifecycle))
2323

2424
Additional values MAY be defined by the runtime, however, they MUST be used to represent new runtime states not defined above.
25-
* **`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.
25+
* **`pid`** (int, REQUIRED when `status` is `created` or `running` on Linux, OPTIONAL on other platforms) is the ID of the container process.
26+
For hooks executed in the runtime namespace, it is the pid as seen by the runtime.
27+
For hooks executed in the container namespace, it is the pid as seen by the container.
2628
* **`bundle`** (string, REQUIRED) is the absolute path to the container's bundle directory.
2729
This is provided so that consumers can find the container's configuration and root filesystem on the host.
2830
* **`annotations`** (map, OPTIONAL) contains the list of annotations associated with the container.

0 commit comments

Comments
 (0)