Skip to content

Commit

Permalink
Merge pull request #559 from wking/create-bail-for-unsupported-config
Browse files Browse the repository at this point in the history
runtime.md: Require 'create' to fail if config.json asks for the impossible
  • Loading branch information
Mrunal Patel authored Sep 20, 2016
2 parents 67063b5 + 766abd6 commit 313f40b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down

0 comments on commit 313f40b

Please sign in to comment.