Skip to content

Commit a1998ec

Browse files
Merge pull request #953 from kinvolk/alban/hook-paths
config: Clarify execution environment for hooks
2 parents b4a682c + fd39559 commit a1998ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ For POSIX platforms, the configuration structure supports `hooks` for configurin
375375
Entries in the array contain the following properties:
376376
* **`path`** (string, REQUIRED) with similar semantics to [IEEE Std 1003.1-2008 `execv`'s *path*][ieee-1003.1-2008-functions-exec].
377377
This specification extends the IEEE standard in that **`path`** MUST be absolute.
378+
Runtimes MUST resolve this value in the [runtime namespace](glossary.md#runtime-namespace).
378379
* **`args`** (array of strings, OPTIONAL) with the same semantics as [IEEE Std 1003.1-2008 `execv`'s *argv*][ieee-1003.1-2008-functions-exec].
379380
* **`env`** (array of strings, OPTIONAL) with the same semantics as [IEEE Std 1003.1-2008's `environ`][ieee-1003.1-2008-xbd-c8.1].
380381
* **`timeout`** (int, OPTIONAL) is the number of seconds before aborting the hook.
@@ -386,6 +387,7 @@ For POSIX platforms, the configuration structure supports `hooks` for configurin
386387

387388
Hooks allow users to specify programs to run before or after various lifecycle events.
388389
Hooks MUST be called in the listed order.
390+
Hooks MUST be executed in the [runtime namespace](glossary.md#runtime-namespace).
389391
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.
390392

391393
### <a name="configHooksPrestart" />Prestart

0 commit comments

Comments
 (0)