Skip to content

Commit

Permalink
Add an --id option to 'start'
Browse files Browse the repository at this point in the history
Give the user a consistent way to pick their container ID.  For example, they may want to use:

  --id $(dirname "$PWD")

or they may want to use:

  --id $(uuidgen)

or they may want to leave ID generation to the runtime.

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information
wking committed Dec 2, 2015
1 parent ffa124c commit 5033c59
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 @@ -44,6 +44,8 @@ $ echo $?
Starts a container from a bundle directory.

* *Options*
* *`--id <ID>`* Set the container ID when creating or joining a container.
If not set, the runtime is free to pick any ID that is not already in use.
* *`--config <PATH>`* Override `config.json` with an alternative path. The path may not support seeking (e.g. `/dev/fd/3`).
* *`--runtime <PATH>`* Override `runtime.json` with an alternative path. The path may not support seeking (e.g. `/dev/fd/3`).
* *Standard streams:* The runtime must attach its standard streams directly to the application process without inspection.
Expand All @@ -52,7 +54,7 @@ Starts a container from a bundle directory.
Example:
```sh
# in a bundle directory with a process that echos "hello" and exits 42
$ funC start
$ funC start --id hello-1
hello

$ echo $?
Expand Down

0 comments on commit 5033c59

Please sign in to comment.