]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
doc: Update Japanese man pages
authorKATOH Yasufumi <karma@jazz.email.ne.jp>
Thu, 16 Jan 2014 07:38:27 +0000 (16:38 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 16 Jan 2014 15:35:26 +0000 (10:35 -0500)
* lxc-unshare(1): Update for commit c1bb25a831fdd568fb8c899b67a7be63c21f4a10 and 13d8bde96f0a21da92bcf353ad5db3f6f83172c2
* lxc.conf(5): Update for commit 04a243f11d5d4891b427107774d30d058bb191e7

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
doc/ja/lxc-unshare.sgml.in
doc/ja/lxc.conf.sgml.in

index f40c0634749a90f7d7a41f5fae8f4a2278cf0fb8..1d049123a006612cf280989fbc2493880efcace9 100644 (file)
@@ -57,7 +57,11 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
     <cmdsynopsis>
       <command>lxc-unshare</command>
       <arg choice="req">-s <replaceable>namespaces</replaceable></arg>
-      <arg choice="req">-u <replaceable>user</replaceable></arg>
+      <arg choice="opt">-u <replaceable>user</replaceable></arg>
+      <arg choice="opt">-H <replaceable>hostname</replaceable></arg>
+      <arg choice="opt">-i <replaceable>ifname</replaceable></arg>
+      <arg choice="opt">-d</arg>
+      <arg choice="opt">-M</arg>
       <arg choice="req">command</arg>
     </cmdsynopsis>
   </refsynopsisdiv>
@@ -120,11 +124,70 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
        <listitem>
          <para>
             <!--
-           Specify a user which the new task should become.  This option is
-           only valid if a user namespace is unshared.
+           Specify a user which the new task should become.
             -->
             新しいタスクを実行するユーザを指定します.
-            このオプションはユーザ名前空間を unshare する時のみ有効です.
+         </para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term>
+         <option>-H <replaceable>hostname</replaceable></option>
+       </term>
+       <listitem>
+         <para>
+            <!--
+           Set the hostname in the new container.  Only allowed if
+           the UTSNAME namespace is set.
+            -->
+            新しいコンテナ内でのホスト名を設定します.UTSNAME 名前空間を指定している時のみ有効です.
+         </para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term>
+         <option>-i <replaceable>interfacename</replaceable></option>
+       </term>
+       <listitem>
+         <para>
+            <!--
+           Move the named interface into the container.  Only allowed
+           if the NETWORK namespace is set.  You may specify this
+           argument multiple times to move multiple interfaces into
+           container.
+            -->
+            指定したインターフェースをコンテナ内に移動させます.ネットワーク (NETWORK) 名前空間を指定している時のみ有効です.複数のインターフェースをコンテナに移動させるために複数回指定することも可能です.
+         </para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term>
+         <option>-d</option>
+       </term>
+       <listitem>
+         <para>
+            <!--
+           Daemonize (do not wait for the container to exit before exiting)
+            -->
+            デーモンにします (コマンドはコンテナの終了を待ちません).
+         </para>
+       </listitem>
+      </varlistentry>
+
+      <varlistentry>
+       <term>
+         <option>-M</option>
+       </term>
+       <listitem>
+         <para>
+            <!--
+           Mount default filesystems (/proc /dev/shm and /dev/mqueue)
+           in the container.  Only allowed if MOUNT namespace is set.
+            -->
+            コンテナ内でデフォルトのファイルシステム (/proc, /dev/shm, /dev/mqueue) をマウントします.マウント (MOUNT) 名前空間を指定している時のみ有効です.
          </para>
        </listitem>
       </varlistentry>
@@ -174,6 +237,28 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
         </programlisting>
         ps の出力は,その名前空間内には他のプロセスが存在しない事を表示するでしょう.
       </para>
+      <para>
+        <!--
+        To spawn a shell in a new network, pid, mount, and hostname
+        namespace.
+        <programlisting>
+          lxc-unshare -s "NETWORK|PID|MOUNT|UTSNAME" -M -H slave -i veth1 /bin/bash
+        </programlisting>
+        -->
+        新しいネットワーク,PID,マウント,ホスト名 (UTS) 名前空間でシェルを起動するには,
+        <programlisting>
+          lxc-unshare -s "NETWORK|PID|MOUNT|UTSNAME" -M -H slave -i veth1 /bin/bash
+        </programlisting>
+
+        <!--
+       The resulting shell will have pid 1 and will see two network
+       interfaces (lo and veth1).  The hostname will be "slave" and
+       /proc will have been remounted.  ps output will show there are
+       no other processes in the namespace.
+        -->
+        起動したシェルは PID 1 を持ち,2 つのネットワークインターフェース (lo と veth1) を持ちます.
+        ホスト名は "slave" となり,/proc は再マウントされます.ps コマンドは,名前空間内には他のプロセスがない状態を表示するでしょう.
+      </para>
   </refsect1>
 
   &seealso;
index 1140c7fe5aeaec3b80eef255ea174f1cd89b6a15..18a3ec35252859ed0077e77cce470afd04b6a332 100644 (file)
@@ -305,7 +305,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
              several network virtualization types can be specified
              for the same container, as well as assigning several
              network interfaces for one container. The different
-             virtualization types can be:
+             virtualization types can sbe:
               -->
               コンテナがどの種類のネットワーク仮想化を使うかを指定します.
               一つのネットワークの設定ごとに <option>lxc.network.type</option> フィールドを指定します.
@@ -313,6 +313,20 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
               仮想化の種類は以下の値を取る事が出来ます:
            </para>
 
+           <para>
+              <!--
+             <option>none:</option> will cause the container to share
+             the host's network namespace.  This means the host
+             network devices are usable in the container.  It also
+             means that if both the container and host have upstart as
+             init, 'halt' in a container (for instance) will shut down the
+             host.
+              -->
+              <option>none:</option> ホストのネットワーク名前空間を共有します.
+              これにより,ホストのネットワークデバイスをコンテナ内で使うことが可能になります.
+              もしコンテナもホストも init として upstart を使っている場合,(例えば) コンテナ内で 'halt' を実行すると,ホストがシャットダウンしてしまうことにもなります.
+           </para>
+
            <para>
               <!--
              <option>empty:</option> will create only the loopback