Skip to content

Commit 17291a8

Browse files
committed
command-line-interface: 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]: https://github.com/opencontainers/runtime-spec/pull/511/files#r70353376 Subject: Add initial pass at a cmd line spec [2]: opencontainers#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 d527365 commit 17291a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

command-line-interface.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ This command SHOULD exit as quickly as possible after creating the container, wi
3131
* *`<ID>`* Set the container ID to create.
3232
* *Options*
3333
* *`--bundle <PATH>`* Override the path to the [bundle directory][bundle] (defaults to the current working directory).
34+
* *`--pid-file <PATH>`* The runtime MUST write the container PID to this path.
3435
* *Standard streams:*
3536
* *stdin:* The runtime MUST attach its stdin directly to the container process without reading from it.
3637
* *stdout:* The runtime MUST attach its stdout directly to the container process without writing to it.

0 commit comments

Comments
 (0)