mirror of
git://github.com/lxc/lxc
synced 2025-09-03 22:09:30 +00:00
doc: Update Japanese man pages
* lxc-unshare(1): Update for commitc1bb25a831
and13d8bde96f
* lxc.conf(5): Update for commit04a243f11d
Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
committed by
Stéphane Graber
parent
5e32a9901d
commit
3dcb8ff3dd
@@ -57,7 +57,11 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
|
|||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>lxc-unshare</command>
|
<command>lxc-unshare</command>
|
||||||
<arg choice="req">-s <replaceable>namespaces</replaceable></arg>
|
<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>
|
<arg choice="req">command</arg>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
</refsynopsisdiv>
|
</refsynopsisdiv>
|
||||||
@@ -120,11 +124,70 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<!--
|
<!--
|
||||||
Specify a user which the new task should become. This option is
|
Specify a user which the new task should become.
|
||||||
only valid if a user namespace is unshared.
|
|
||||||
-->
|
-->
|
||||||
新しいタスクを実行するユーザを指定します.
|
新しいタスクを実行するユーザを指定します.
|
||||||
このオプションはユーザ名前空間を 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>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@@ -174,6 +237,28 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
|
|||||||
</programlisting>
|
</programlisting>
|
||||||
ps の出力は,その名前空間内には他のプロセスが存在しない事を表示するでしょう.
|
ps の出力は,その名前空間内には他のプロセスが存在しない事を表示するでしょう.
|
||||||
</para>
|
</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>
|
</refsect1>
|
||||||
|
|
||||||
&seealso;
|
&seealso;
|
||||||
|
@@ -305,7 +305,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
|
|||||||
several network virtualization types can be specified
|
several network virtualization types can be specified
|
||||||
for the same container, as well as assigning several
|
for the same container, as well as assigning several
|
||||||
network interfaces for one container. The different
|
network interfaces for one container. The different
|
||||||
virtualization types can be:
|
virtualization types can sbe:
|
||||||
-->
|
-->
|
||||||
コンテナがどの種類のネットワーク仮想化を使うかを指定します.
|
コンテナがどの種類のネットワーク仮想化を使うかを指定します.
|
||||||
一つのネットワークの設定ごとに <option>lxc.network.type</option> フィールドを指定します.
|
一つのネットワークの設定ごとに <option>lxc.network.type</option> フィールドを指定します.
|
||||||
@@ -313,6 +313,20 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
|
|||||||
仮想化の種類は以下の値を取る事が出来ます:
|
仮想化の種類は以下の値を取る事が出来ます:
|
||||||
</para>
|
</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>
|
<para>
|
||||||
<!--
|
<!--
|
||||||
<option>empty:</option> will create only the loopback
|
<option>empty:</option> will create only the loopback
|
||||||
|
Reference in New Issue
Block a user