-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hooks to linux,solaris and doc clarification #855
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -356,7 +356,8 @@ Runtime implementations MAY support any valid values for platform-specific field | |
|
||
## <a name="configHooks" />Hooks | ||
|
||
Hooks allow for the configuration of custom actions related to the [lifecycle](runtime.md#lifecycle) of the container. | ||
Hooks allow for the configuration of custom actions related to the [lifecycle](runtime.md#lifecycle) of the container if supported by the platform. | ||
On Linux, they are run after the container namespaces are created. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not all hooks are run after creation. In fact, there are currently no There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. correct. |
||
|
||
* **`hooks`** (object, OPTIONAL) MAY contain any of the following properties: | ||
* **`prestart`** (array of objects, OPTIONAL) is an array of [pre-start hooks](#prestart). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather follow the example set for
process.user.uid
and friends and make this:Although I'd rather have this ABNF so we could say:
hooks
(object, OPTIONAL, linux solaris) …to protect readers who skipped over this lead-in paragraph and went straight to the
hooks
list entry.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't clearly say which platforms can rely on
hooks
, we're back to the rejected #472.