]> git.proxmox.com Git - mirror_lxc.git/commitdiff
doc: Add lxc.cgroup.dir to Japanese lxc.container.conf(5)
authorKATOH Yasufumi <karma@jazz.email.ne.jp>
Wed, 6 Sep 2017 10:17:00 +0000 (19:17 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 10 Sep 2017 18:00:44 +0000 (14:00 -0400)
* and fix a typo in English man

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

index f567e82124d8ae4fa1adcf57c7dbbb22e6cda6fe..86c8fec53c3bf522807ce5cca5d273d01d22f127 100644 (file)
@@ -1561,6 +1561,31 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
             </para>
           </listitem>
         </varlistentry>
+        <varlistentry>
+          <term>
+            <option>lxc.cgroup.dir</option>
+          </term>
+          <listitem>
+            <para>
+             <!--
+              specify a directory or path in which the container's cgroup will
+              be created. For example, setting
+              <option>lxc.cgroup.dir = my-cgroup/first</option> for a container
+              named "c1" will create the container's cgroup as a sub-cgroup of
+              "my-cgroup". For example, if the user's current cgroup "my-user"
+              is located in the root cgroup of the cpuset controllerin in a
+              cgroup v1 hierarchy this would create the cgroup
+              "/sys/fs/cgroup/cpuset/my-user/my-cgroup/first/c1" for the
+              container. Any missing cgroups will be created by LXC. This
+              presupposes that the user has write access to its current cgroup.
+             -->
+             コンテナの cgroup を作成するパスやディレクトリを指定します。
+             例えば、"c1" という名前のコンテナで <option>lxc.cgroup.dir = my-cgroup/first</option> のように設定すると、"my-cgroup" のサブ cgroup のようにコンテナの cgroup を作成します。
+             例えば、ユーザのカレントの cgroup である "my-user" が cgroup v1 階層にある cpuset コントローラの root cgroup 内に存在する場合、この設定は "/sys/fs/cgroup/cpuset/my-user/my-cgroup/first/c1" という cgroup をこのコンテナ向けに作成します。
+             存在しない cgroup は LXC が作成しますが、ユーザがカレントの cgroup に書き込み権を持っていることが前提となります。
+            </para>
+          </listitem>
+        </varlistentry>
       </variablelist>
     </refsect2>
 
index 397222f0bb65614ae2caaf08750a3ae38ff4fd2d..f89eb65b49b2c9698e244d5229025c7360a0e2a7 100644 (file)
@@ -1140,7 +1140,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
               <option>lxc.cgroup.dir = my-cgroup/first</option> for a container
               named "c1" will create the container's cgroup as a sub-cgroup of
               "my-cgroup". For example, if the user's current cgroup "my-user"
-              is located in the root cgroup of the cpuset controllerin in a
+              is located in the root cgroup of the cpuset controller in a
               cgroup v1 hierarchy this would create the cgroup
               "/sys/fs/cgroup/cpuset/my-user/my-cgroup/first/c1" for the
               container. Any missing cgroups will be created by LXC. This