]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
doc: add lxc.limit to lxc.container.conf
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 4 Nov 2016 11:03:28 +0000 (12:03 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 Apr 2017 12:01:11 +0000 (14:01 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
doc/lxc.container.conf.sgml.in

index fcccd8ba995dfd04a11d52bd4e284e8ef400c3ed..43f31397b965f6764c310ad7da66979357657e49 100644 (file)
@@ -1183,6 +1183,40 @@ proc proc proc nodev,noexec,nosuid 0 0
       </variablelist>
     </refsect2>
 
+    <refsect2>
+      <title>Resource limits</title>
+      <para>
+        The soft and hard resource limits for the container can be changed.
+        Unprivileged containers can only lower them. Resources which are not
+        explicitly specified will be inherited.
+      </para>
+      <variablelist>
+        <varlistentry>
+          <term>
+            <option>lxc.limit.[limit name]</option>
+          </term>
+          <listitem>
+            <para>
+              Specify the resource limit to be set. A limit is specified as two
+              colon separated values which are either numeric or the word
+              'unlimited'. A single value can be used as a shortcut to set both
+              soft and hard limit to the same value. The permitted names the
+              "RLIMIT_" resource names in lowercase without the "RLIMIT_"
+              prefix, eg. RLIMIT_NOFILE should be specified as "nofile". See
+              <citerefentry>
+                <refentrytitle><command>setrlimit</command></refentrytitle>
+                <manvolnum>2</manvolnum>
+              </citerefentry>.
+              If used with no value, lxc will clear the resource limit
+              specified up to this point. A resource with no explicitly
+              configured limitation will be inherited from the process starting
+              up the container.
+            </para>
+          </listitem>
+        </varlistentry>
+      </variablelist>
+    </refsect2>
+
     <refsect2>
       <title>Apparmor profile</title>
       <para>