Skip to content

Commit

Permalink
fix hooks man and help
Browse files Browse the repository at this point in the history
Signed-off-by: Ma Shimiao <[email protected]>
  • Loading branch information
Ma Shimiao committed Aug 17, 2016
1 parent 6aeb752 commit 3902084
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
6 changes: 3 additions & 3 deletions cmd/ocitools/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ var generateFlags = []cli.Flag{
cli.StringFlag{Name: "cgroups-path", Usage: "specify the path to the cgroups"},
cli.StringFlag{Name: "mount-cgroups", Value: "no", Usage: "mount cgroups (rw,ro,no)"},
cli.StringSliceFlag{Name: "bind", Usage: "bind mount directories src:dest:(rw,ro)"},
cli.StringSliceFlag{Name: "prestart", Usage: "path to prestart hooks"},
cli.StringSliceFlag{Name: "poststart", Usage: "path to poststart hooks"},
cli.StringSliceFlag{Name: "poststop", Usage: "path to poststop hooks"},
cli.StringSliceFlag{Name: "prestart", Usage: "set commands to run in prestart hooks"},
cli.StringSliceFlag{Name: "poststart", Usage: "set commands to run in poststart hooks"},
cli.StringSliceFlag{Name: "poststop", Usage: "set commands to run in poststop hooks"},
cli.StringFlag{Name: "root-propagation", Usage: "mount propagation for root"},
cli.StringFlag{Name: "os", Value: runtime.GOOS, Usage: "operating system the container is created for"},
cli.StringFlag{Name: "arch", Value: runtime.GOARCH, Usage: "architecture the container is created for"},
Expand Down
19 changes: 10 additions & 9 deletions man/ocitools-generate.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,19 @@ read the configuration from `config.json`.
The special *PATH* `host` removes any existing PID namespace from
the configuration.

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

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

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

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

0 comments on commit 3902084

Please sign in to comment.