From 02689a9ef414dd43c21bffd0347ccf8841d694e9 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 29 Oct 2015 11:24:47 -0700 Subject: [PATCH] runtime-config-linux: Add a way to disable runtime cgroup manipulation So folks can use a different model, if the current linux.resources approach isn't scratching their itch. Signed-off-by: W. Trevor King --- runtime-config-linux.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime-config-linux.md b/runtime-config-linux.md index 1fff724cc..cf1943150 100644 --- a/runtime-config-linux.md +++ b/runtime-config-linux.md @@ -162,6 +162,9 @@ You can configure a container's cgroups via the `resources` field of the Linux c Do not specify `resources` unless limits have to be updated. For example, to run a new process in an existing container without updating limits, `resources` need not be specified. +If neither `resources` nor `cgroupsPath` is specified, the runtime MUST not manipulate or require the existence of any cgroups. +You probably only want to do this if you are handling cgroups yourself via [hooks](runtime-config.md#hooks). + #### Disable out-of-memory killer `disableOOMKiller` contains a boolean (`true` or `false`) that enables or disables the Out of Memory killer for a cgroup.