Skip to content

Commit fdd157c

Browse files
committed
runtime: Add --pid-file to 'create'
You can get the PID by calling 'state' [1], and container PIDs may not be portable [2]. But it's a common way for interfacing with init systems like systemd [3], and for this first pass at the command line API folks are ok with some Linux-centrism [4]. [1]: opencontainers/runtime-spec#511 (comment) Subject: Add initial pass at a cmd line spec [2]: opencontainers/runtime-spec#459 Subject: [ Runtime ] Allow for excluding pid from state [3]: http://ircbot.wl.linuxfoundation.org/meetings/opencontainers/2016/opencontainers.2016-07-20-21.03.log.html#l-69 [4]: http://ircbot.wl.linuxfoundation.org/meetings/opencontainers/2016/opencontainers.2016-07-13-17.03.log.html#l-39 Signed-off-by: W. Trevor King <[email protected]>
1 parent 6f99cc3 commit fdd157c

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
@@ -41,6 +41,7 @@ For example, POSIX systems define [`LANG` and related environment variables][pos
4141
* *`<ID>`* Set the container ID to create.
4242
* *Options*
4343
* *`--bundle <PATH>`* Override the path to the [bundle directory][bundle] (defaults to the current working directory).
44+
* *`--pid-file <PATH>`* The runtime MUST write the container PID to this path.
4445
* *Standard streams:*
4546
* *stdin:* The runtime MUST NOT attempt to read from its stdin.
4647
* *stdout:* The handling of stdout is unspecified.

0 commit comments

Comments
 (0)