Skip to content

Commit

Permalink
Merge pull request #1045 from RenaudWasTaken/state-pid
Browse files Browse the repository at this point in the history
Define State for container and runtime namespace
  • Loading branch information
Mrunal Patel authored May 21, 2020
2 parents 237cc4f + 6042999 commit e548728
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e548728

Please sign in to comment.