Skip to content

Commit

Permalink
doc: Update Japanese man pages
Browse files Browse the repository at this point in the history
* lxc-unshare(1): Update for commit c1bb25a and 13d8bde
* lxc.conf(5): Update for commit 04a243f

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
tenforward authored and stgraber committed Jan 16, 2014
1 parent 5e32a99 commit 3dcb8ff
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 5 deletions.
93 changes: 89 additions & 4 deletions doc/ja/lxc-unshare.sgml.in
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down
16 changes: 15 additions & 1 deletion doc/ja/lxc.conf.sgml.in
Expand Up @@ -305,14 +305,28 @@ 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> フィールドを指定します.
このように,一つのコンテナに複数のネットワークインターフェースを割り当てることができるだけでなく,同じコンテナに対して複数のネットワーク仮想化の種類を指定することが出来ます.
仮想化の種類は以下の値を取る事が出来ます:
</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
Expand Down

0 comments on commit 3dcb8ff

Please sign in to comment.