]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
doc: add lxc.limit to lxc.container.conf(5) 1527/head
authorKATOH Yasufumi <karma@jazz.email.ne.jp>
Tue, 25 Apr 2017 08:33:36 +0000 (17:33 +0900)
committerKATOH Yasufumi <karma@jazz.email.ne.jp>
Tue, 25 Apr 2017 08:33:36 +0000 (17:33 +0900)
Update for commit 93f9e90

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
doc/ja/lxc.container.conf.sgml.in

index 6031797b1c4394379a4dfa3a3fb2b176f1332a42..33bc6178a875d9ff7035f4419b1881c107179ea8 100644 (file)
@@ -1674,6 +1674,51 @@ 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.
+              -->
+              設定したいリソースと制限値を指定します。制限値はコロンで区切られた 2 つの値で指定します。値は数値もしくは 'unlimited' で指定します。ソフトもハードも同じ値を指定する場合は単一の値を指定できます。指定できる名前は、"RLIMIT_" 接頭辞がなく小文字で書かれた、"RLIMIT_" リソース名です。例えば、RLIMIT_NOFILE は "nofile" と指定します。詳しくは
+              <citerefentry>
+                <refentrytitle><command>setrlimit</command></refentrytitle>
+                <manvolnum>2</manvolnum>
+              </citerefentry> を参照してください。
+              値を指定せずに使用した場合、lxc はこの指定以前に設定されたリソース制限をクリアします。明示的に制限が設定されていないリソースについては、コンテナを起動したプロセスから継承します。
+            </para>
+          </listitem>
+        </varlistentry>
+      </variablelist>
+    </refsect2>
+
     <refsect2>
       <title><!-- Apparmor profile -->Apparmor プロファイル</title>
       <para>