Skip to content

Commit d514aad

Browse files
committed
runtime: lifecycle: environment must match config.json
Make it clear that if a runtime cannot set up an environment that *precisely* matches the config.json provided, it must generate an error. This is important because not doing this can cause security issues. Signed-off-by: Aleksa Sarai <[email protected]>
1 parent ce19b8d commit d514aad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ See [Query State](#query-state) for information on retrieving the state of a con
3434
The lifecycle describes the timeline of events that happen from when a container is created to when it ceases to exist.
3535
1. OCI compliant runtime's `create` command is invoked with a reference to the location of the bundle and a unique identifier.
3636
2. The container's runtime environment MUST be created according to the configuration in [`config.json`](config.md).
37+
If the runtime is unable to create the environment specified in the [`config.json`](config.md), it MUST generate an error.
3738
While the resources requested in the [`config.json`](config.md) MUST be created, the user-specified code (from [`process`](config.md#process-configuration) MUST NOT be run at this time.
3839
Any updates to `config.json` after this step MUST NOT affect the container.
3940
3. Once the container is created additional actions MAY be performed based on the features the runtime chooses to support.

0 commit comments

Comments
 (0)