Skip to content

Commit

Permalink
doc: document cgroup-full:{mixed,ro,rw}:force
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 21, 2018
1 parent 6800288 commit e7806b2
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions doc/lxc.container.conf.sgml.in
Expand Up @@ -1203,6 +1203,7 @@ dev/null proc/kcore none bind,relative 0 0
<option>cgroup:mixed</option> otherwise.
</para>
</listitem>

<listitem>
<para>
<option>cgroup-full:mixed</option>:
Expand All @@ -1222,13 +1223,39 @@ dev/null proc/kcore none bind,relative 0 0
container.
</para>
</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>
<para>
<option>cgroup-full:ro</option>: similar to
<option>cgroup-full:mixed</option>, but everything
will be mounted read-only.
</para>
</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>
<para>
<option>cgroup-full:rw</option>: similar to
Expand All @@ -1240,6 +1267,19 @@ dev/null proc/kcore none bind,relative 0 0
do so anyway.)
</para>
</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>
<para>
<option>cgroup-full</option> (without specifier):
Expand All @@ -1248,6 +1288,7 @@ dev/null proc/kcore none bind,relative 0 0
<option>cgroup-full:mixed</option> otherwise.
</para>
</listitem>

</itemizedlist>
<para>
If cgroup namespaces are enabled, then any <option>cgroup</option>
Expand Down

0 comments on commit e7806b2

Please sign in to comment.