Merge pull request #559 from wking/create-bail-for-unsupported-config

runtime.md: Require 'create' to fail if config.json asks for the impossible
This commit is contained in:
Mrunal Patel 2016-09-20 14:29:59 -07:00 committed by GitHub
commit 313f40bdfc
1 changed files with 2 additions and 1 deletions

View File

@ -84,9 +84,10 @@ This operation MUST return the state of a container as specified in the [State](
`create <container-id> <path-to-bundle>`
This operation MUST generate an error if it is not provided a path to the bundle and the container ID to associate with the container.
If the ID provided is not unique across all containers within the scope of the runtime, or is not valid in any other way, the implementation MUST generate an error and a new container MUST not be created.
If the ID provided is not unique across all containers within the scope of the runtime, or is not valid in any other way, the implementation MUST generate an error and a new container MUST NOT be created.
Using the data in [`config.json`](config.md), this operation MUST create a new container.
This means that all of the resources associated with the container MUST be created, however, the user-specified code MUST NOT be run at this time.
If the runtime cannot create the container as specified in `config.md`, it MUST generate an error and a new container MUST NOT be created.
Upon successful completion of this operation the `status` property of this container MUST be `created`.