Unverified Commit 275b76d2 by Stéphane Graber Committed by GitHub

Merge pull request #2179 from brauner/2018-02-21/docs_add_cgroup_full_force

doc: document cgroup-full:{mixed,ro,rw}:force
parents a763deec 5038d11a
...@@ -1203,6 +1203,7 @@ dev/null proc/kcore none bind,relative 0 0 ...@@ -1203,6 +1203,7 @@ dev/null proc/kcore none bind,relative 0 0
<option>cgroup:mixed</option> otherwise. <option>cgroup:mixed</option> otherwise.
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
<option>cgroup-full:mixed</option>: <option>cgroup-full:mixed</option>:
...@@ -1222,6 +1223,19 @@ dev/null proc/kcore none bind,relative 0 0 ...@@ -1222,6 +1223,19 @@ dev/null proc/kcore none bind,relative 0 0
container. container.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
<option>cgroup-full:mixed:force</option>:
The <option>force</option> option will cause LXC to perform
the cgroup mounts for the container under all circumstances.
Otherwise it is similar to <option>cgroup-full:mixed</option>.
This is mainly useful when the cgroup namespaces are enabled
where LXC will normally leave mounting cgroups to the init
binary of the container since it is perfectly safe to do so.
</para>
</listitem>
<listitem> <listitem>
<para> <para>
<option>cgroup-full:ro</option>: similar to <option>cgroup-full:ro</option>: similar to
...@@ -1229,6 +1243,19 @@ dev/null proc/kcore none bind,relative 0 0 ...@@ -1229,6 +1243,19 @@ dev/null proc/kcore none bind,relative 0 0
will be mounted read-only. will be mounted read-only.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
<option>cgroup-full:ro:force</option>:
The <option>force</option> option will cause LXC to perform
the cgroup mounts for the container under all circumstances.
Otherwise it is similar to <option>cgroup-full:ro</option>.
This is mainly useful when the cgroup namespaces are enabled
where LXC will normally leave mounting cgroups to the init
binary of the container since it is perfectly safe to do so.
</para>
</listitem>
<listitem> <listitem>
<para> <para>
<option>cgroup-full:rw</option>: similar to <option>cgroup-full:rw</option>: similar to
...@@ -1240,6 +1267,19 @@ dev/null proc/kcore none bind,relative 0 0 ...@@ -1240,6 +1267,19 @@ dev/null proc/kcore none bind,relative 0 0
do so anyway.) do so anyway.)
</para> </para>
</listitem> </listitem>
<listitem>
<para>
<option>cgroup-full:rw:force</option>:
The <option>force</option> option will cause LXC to perform
the cgroup mounts for the container under all circumstances.
Otherwise it is similar to <option>cgroup-full:rw</option>.
This is mainly useful when the cgroup namespaces are enabled
where LXC will normally leave mounting cgroups to the init
binary of the container since it is perfectly safe to do so.
</para>
</listitem>
<listitem> <listitem>
<para> <para>
<option>cgroup-full</option> (without specifier): <option>cgroup-full</option> (without specifier):
...@@ -1248,6 +1288,7 @@ dev/null proc/kcore none bind,relative 0 0 ...@@ -1248,6 +1288,7 @@ dev/null proc/kcore none bind,relative 0 0
<option>cgroup-full:mixed</option> otherwise. <option>cgroup-full:mixed</option> otherwise.
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para> <para>
If cgroup namespaces are enabled, then any <option>cgroup</option> If cgroup namespaces are enabled, then any <option>cgroup</option>
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <unistd.h> #include <unistd.h>
#include <linux/loop.h> #include <linux/loop.h>
#include <linux/magic.h> #include <linux/magic.h>
#include <linux/types.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/vfs.h> #include <sys/vfs.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment