Skip to content

Commit 154d3c1

Browse files
committed
runtime-config: Require hooks to execute in the host environment
On IRC on 2015-09-28: 11:28 < jojy_mesos> i guess i was expecting an additional attribute for hooks that specifies whether the hooks runs in the host namespace or in the container's namespace 11:28 < lk4d4> they all run in host namespaces Signed-off-by: W. Trevor King <[email protected]>
1 parent 2078b31 commit 154d3c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime-config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Presently there are `Prestart` and `Poststop`.
1111
Hooks allow one to run code before/after various lifecycle events of the container.
1212
Hooks MUST be called in the listed order.
1313
The state of the container is passed to the hooks over stdin, so the hooks could get the information they need to do their work.
14+
All hooks execute in the host environment (e.g. the same namespace, cgroups, etc. that apply to the host process).
1415

1516
Hook paths are absolute and are executed from the host's filesystem.
1617

0 commit comments

Comments
 (0)