@@ -7,26 +7,28 @@ Whether other entities using the same, or other, instance of the runtime can see
77
88## State
99
10- The state of a container MUST include, at least, the following properties:
10+ The state of a container includes the following properties:
1111
12- * ** ` ociVersion ` ** : (string) is the OCI specification version used when creating the container.
13- * ** ` id ` ** : (string) is the container's ID.
12+ * ** ` ociVersion ` ** (string, REQUIRED ) is the OCI specification version used when creating the container.
13+ * ** ` id ` ** (string, REQUIRED ) is the container's ID.
1414This MUST be unique across all containers on this host.
1515There is no requirement that it be unique across hosts.
16- * ** ` status ` ** : (string) is the runtime state of the container.
16+ * ** ` status ` ** (string, REQUIRED ) is the runtime state of the container.
1717The value MAY be one of:
1818
1919 * `created`: the container process has neither exited nor executed the user-specified program
2020 * `running`: the container process has executed the user-specified program but has not exited
2121 * `stopped`: the container process has exited
2222
2323 Additional values MAY be defined by the runtime, however, they MUST be used to represent new runtime states not defined above.
24- * ** ` pid ` ** : (int) is the ID of the container process, as seen by the host.
25- * ** ` bundlePath ` ** : (string) is the absolute path to the container's bundle directory.
24+ * ** ` pid ` ** (int, REQUIRED when ` status ` is ` created ` or ` running ` ) is the ID of the container process, as seen by the host.
25+ * ** ` bundlePath ` ** (string, REQUIRED ) is the absolute path to the container's bundle directory.
2626This is provided so that consumers can find the container's configuration and root filesystem on the host.
27- * ** ` annotations ` ** : (map) contains the list of annotations associated with the container.
27+ * ** ` annotations ` ** (map, OPTIONAL ) contains the list of annotations associated with the container.
2828If no annotations were provided then this property MAY either be absent or an empty map.
2929
30+ The state MAY include additional properties.
31+
3032When serialized in JSON, the format MUST adhere to the following pattern:
3133
3234``` json
0 commit comments