Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ The pre-start hooks are called after the container process is spawned, but befor
They are called after the container namespaces are created on Linux, so they provide an opportunity to customize the container.
In Linux, for e.g., the network namespace could be configured in this hook.

The hooks MUST be called in the listed order (`prestart[0]` first, `prestart[1]` second, …).
If a hook returns a non-zero exit code, then an error including the exit code and the stderr is returned to the caller and the container is torn down.

### Post-stop
The post-stop hooks are called after the container process is stopped. Cleanup or debugging could be performed in such a hook.

The hooks MUST be called in the listed order (`poststop[0]` first, `poststop[1]` second, …).
If a hook returns a non-zero exit code, then an error is logged and the remaining hooks are executed.

*Example*
Expand Down