From 41213ad880dfa79c114532ccd8179743b044edc1 Mon Sep 17 00:00:00 2001 From: "Rob Dolin (MSFT)" Date: Fri, 27 May 2016 11:16:45 -0700 Subject: [PATCH] [Config | Hooks] Add "if supported by the platform" The spec currently suggests "Hooks MUST be called in the listed order." If hooks are not supported by the platform, this would be a requirement that could not be met. This PR adds "if supported by the platform" so that we're not imposing an impossible requirement on platforms that might not (currently) have support for hooks. Signed-off-by: Rob Dolin --- config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.md b/config.md index bd42af426..48cab0db1 100644 --- a/config.md +++ b/config.md @@ -245,7 +245,7 @@ Presently there are `Prestart`, `Poststart` and `Poststop`. * [`Poststop`](#poststop) is a list of hooks to be run after the container process exits Hooks allow one to run code before/after various lifecycle events of the container. -Hooks MUST be called in the listed order. +Hooks MUST be called in the listed order if supported by the platform. 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. Hook paths are absolute and are executed from the host's filesystem in the [runtime namespace][runtime-namespace].