lxc-unshare.sgml.in revision 6127da6b3f5815028bee187ac98840cd94313841
f44ce1c2d9438f718397e30af7499bb8a8574780Till Mossakowskilxc: linux Container library
f44ce1c2d9438f718397e30af7499bb8a8574780Till Mossakowski(C) Copyright IBM Corp. 2007, 2008
d79e030993a7d41dd0becfe941633e23997a6717Julian KornbergerDaniel Lezcano <daniel.lezcano at free.fr>
f44ce1c2d9438f718397e30af7499bb8a8574780Till MossakowskiThis library is free software; you can redistribute it and/or
f44ce1c2d9438f718397e30af7499bb8a8574780Till Mossakowskimodify it under the terms of the GNU Lesser General Public
f44ce1c2d9438f718397e30af7499bb8a8574780Till MossakowskiLicense as published by the Free Software Foundation; either
f44ce1c2d9438f718397e30af7499bb8a8574780Till Mossakowskiversion 2.1 of the License, or (at your option) any later version.
f44ce1c2d9438f718397e30af7499bb8a8574780Till MossakowskiThis library is distributed in the hope that it will be useful,
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehasebut WITHOUT ANY WARRANTY; without even the implied warranty of
f44ce1c2d9438f718397e30af7499bb8a8574780Till MossakowskiMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f44ce1c2d9438f718397e30af7499bb8a8574780Till MossakowskiLesser General Public License for more details.
by KATOH Yasufumi <karma at jazz.email.ne.jp>
<command>lxc-unshare</command> はクローンされた名前空間の組の中でタスクを実行するのに使います.このコマンドは主にテスト目的で使います.このような名前であるにもかかわらず,このコマンドは常に,新しい名前空間で新しいタスクを作成するために unshare ではなく clone を使います.テスト中のカーネルの退行は別として,これで違いは生じないはずです.
e.g. <replaceable>NETWORK|IPC</replaceable>. Allowed values are
the context of the process to e.g. the network namespace of the
アタッチする名前空間を,パイプでつなげたリストで指定します.例えば <replaceable>NETWORK|IPC</replaceable> のようにです.指定できる値は <replaceable>MOUNT</replaceable>,<replaceable>PID</replaceable>,<replaceable>UTSNAME</replaceable>,<replaceable>IPC</replaceable>,<replaceable>USER </replaceable>,<replaceable>NETWORK</replaceable> です.これにより,プロセスのコンテキストを変更することができます.例えば,コンテナのネットワーク名前空間だけを変更し,他の名前空間をホストのものと同じものに保ったままにするというようなことです.