diff --git a/config.md b/config.md index 06801f5dd..bd8aea153 100644 --- a/config.md +++ b/config.md @@ -383,7 +383,11 @@ For POSIX platforms, the configuration structure supports `hooks` for configurin Entries in the array have the same schema as pre-start entries. Hooks allow users to specify programs to run before or after various lifecycle events. +Hooks are executed on the container host and not in the container. +Therefore, the `path` refers to a path on the host and the execution environment defined in the `process` object does not apply for hooks. + Hooks MUST be called in the listed order. + The [state](runtime.md#state) of the container MUST be passed to hooks over stdin so that they may do work appropriate to the current state of the container. ### Prestart