Skip to content

Commit c3a59f6

Browse files
author
Ma Shimiao
committed
man: add manpage for hooks related env options
Signed-off-by: Ma Shimiao <[email protected]>
1 parent 9261e9d commit c3a59f6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

completions/bash/oci-runtime-tool

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,13 @@ _oci-runtime-tool_generate() {
358358
--mount-cgroups
359359
--output
360360
--poststart
361+
--poststart-env
361362
--poststart-timeout
362363
--poststop
364+
--poststop-env
363365
--poststop-timeout
364366
--prestart
367+
--prestart-env
365368
--prestart-timeout
366369
--process-cap-add
367370
--process-cap-drop

man/oci-runtime-tool-generate.1.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ read the configuration from `config.json`.
272272
gets launched but after the container environment and main process has been
273273
created.
274274

275+
**--poststart-env**=[]
276+
Set environment variables for commands in poststart hooks, format is CMD:ENV. e.g. --poststart-env=/bin/test:key=value
277+
This option can be specified multiple times. When same CMD specified over once, the last one make sense.
278+
275279
**--poststart-timeout**=[]
276280
Set timeout for commands in poststart hooks, format is CMD:TIMEOUT. e.g. --poststart-timeout=/bin/test:5
277281
This option can be specified multiple times. When same CMD specified over once, the last one make sense.
@@ -281,6 +285,10 @@ read the configuration from `config.json`.
281285
The multiple commands will be run in order after the container process
282286
is stopped.
283287

288+
**--poststop-env**=[]
289+
Set environment variables for commands in poststop hooks, format is CMD:ENV. e.g. --poststop-env=/bin/test:key=value
290+
This option can be specified multiple times. When same CMD specified over once, the last one make sense.
291+
284292
**--poststop-timeout**=[]
285293
Set timeout for commands in poststop hooks, format is CMD:TIMEOUT. e.g. --poststop-timeout=/bin/test:5
286294
This option can be specified multiple times. When same CMD specified over once, the last one make sense.
@@ -290,6 +298,10 @@ read the configuration from `config.json`.
290298
The multiple commands will be run in order after the container process
291299
has been created but before it executes the user-configured code.
292300

301+
**--prestart-env**=[]
302+
Set environment variables for commands in poststop hooks, format is CMD:ENV. e.g. --prestart-env=/bin/test:key=value
303+
This option can be specified multiple times. When same CMD specified over once, the last one make sense.
304+
293305
**--prestart-timeout**=[]
294306
Set timeout for commands in prestart hooks, format is CMD:TIMEOUT. e.g. --prestart-timeout=/bin/test:5
295307
This option can be specified multiple times. When same CMD specified over once, the last one make sense.

0 commit comments

Comments
 (0)