Skip to content

Commit 3902084

Browse files
author
Ma Shimiao
committed
fix hooks man and help
Signed-off-by: Ma Shimiao <[email protected]>
1 parent 6aeb752 commit 3902084

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

cmd/ocitools/generate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ var generateFlags = []cli.Flag{
4040
cli.StringFlag{Name: "cgroups-path", Usage: "specify the path to the cgroups"},
4141
cli.StringFlag{Name: "mount-cgroups", Value: "no", Usage: "mount cgroups (rw,ro,no)"},
4242
cli.StringSliceFlag{Name: "bind", Usage: "bind mount directories src:dest:(rw,ro)"},
43-
cli.StringSliceFlag{Name: "prestart", Usage: "path to prestart hooks"},
44-
cli.StringSliceFlag{Name: "poststart", Usage: "path to poststart hooks"},
45-
cli.StringSliceFlag{Name: "poststop", Usage: "path to poststop hooks"},
43+
cli.StringSliceFlag{Name: "prestart", Usage: "set commands to run in prestart hooks"},
44+
cli.StringSliceFlag{Name: "poststart", Usage: "set commands to run in poststart hooks"},
45+
cli.StringSliceFlag{Name: "poststop", Usage: "set commands to run in poststop hooks"},
4646
cli.StringFlag{Name: "root-propagation", Usage: "mount propagation for root"},
4747
cli.StringFlag{Name: "os", Value: runtime.GOOS, Usage: "operating system the container is created for"},
4848
cli.StringFlag{Name: "arch", Value: runtime.GOARCH, Usage: "architecture the container is created for"},

man/ocitools-generate.1.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,19 @@ read the configuration from `config.json`.
137137
The special *PATH* `host` removes any existing PID namespace from
138138
the configuration.
139139

140-
**--poststart**=CMD
141-
Path to command to run in poststart hooks. This command will be run before
142-
the container process gets launched but after the container environment and
143-
main process has been created.
140+
**--poststart**=[CMD[:ARG]]
141+
Set commands to run in poststart hooks. The commands will be run in order
142+
before the container process gets launched but after the container
143+
environment and main process has been created.
144144

145-
**--poststop**=CMD
146-
Path to command to run in poststop hooks. The command will be run
145+
**--poststop**=[CMD[:ARG]]
146+
Set commands to run in poststop hooks. The commands will be run in order
147147
after the container process is stopped.
148148

149-
**--prestart**=CMD
150-
Path to command to run in prestart hooks. This command will be run before
151-
the container process gets launched but after the container environment.
149+
**--prestart**=[CMD[:ARG]]
150+
Set commands to run in prestart hooks. This commands will be run in order
151+
before the container process gets launched but after the container
152+
environment.
152153

153154
**--privileged**=true|false
154155
Give extended privileges to this container. The default is *false*.

0 commit comments

Comments
 (0)