]> git.proxmox.com Git - mirror_lxc.git/blame - doc/ja/lxc-execute.sgml.in
start: call lxc_find_gateway_addresses early
[mirror_lxc.git] / doc / ja / lxc-execute.sgml.in
CommitLineData
8900b9eb 1<!--
57da8c32
KY
2
3lxc: linux Container library
4
5(C) Copyright IBM Corp. 2007, 2008
6
7Authors:
8Daniel Lezcano <daniel.lezcano at free.fr>
9
10This library is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2.1 of the License, or (at your option) any later version.
14
15This library is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18Lesser General Public License for more details.
19
20You should have received a copy of the GNU Lesser General Public
21License along with this library; if not, write to the Free Software
a5ba9671 22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
57da8c32 23
8900b9eb 24Translated into Japanese
57da8c32
KY
25by KATOH Yasufumi <karma at jazz.email.ne.jp>
26
27-->
28
faefa7f8 29<!DOCTYPE refentry PUBLIC @docdtd@ [
57da8c32
KY
30
31<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
32<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
33]>
34
35<refentry>
36
37 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
38
39 <refmeta>
40 <refentrytitle>lxc-execute</refentrytitle>
41 <manvolnum>1</manvolnum>
42 </refmeta>
43
44 <refnamediv>
45 <refname>lxc-execute</refname>
46
47 <refpurpose>
48 <!--
49 run an application inside a container.
50 -->
6127da6b 51 コンテナ内でのアプリケーションの実行
57da8c32
KY
52 </refpurpose>
53 </refnamediv>
54
55 <refsynopsisdiv>
56 <cmdsynopsis>
57 <command>lxc-execute</command>
58 <arg choice="req">-n <replaceable>name</replaceable></arg>
f6300ff5 59 <arg choice="opt">-d</arg>
57da8c32
KY
60 <arg choice="opt">-f <replaceable>config_file</replaceable></arg>
61 <arg choice="opt">-s KEY=VAL</arg>
a4a0bba4
KY
62 <arg choice="opt">-u, --uid <replaceable>uid</replaceable></arg>
63 <arg choice="opt">-g, --gid <replaceable>gid</replaceable></arg>
57da8c32
KY
64 <arg choice="opt">-- <replaceable>command</replaceable></arg>
65 </cmdsynopsis>
66 </refsynopsisdiv>
67
68 <refsect1>
69 <title><!-- Description -->説明</title>
70
71 <para>
72 <!--
73 <command>lxc-execute</command> runs the specified
74 <replaceable>command</replaceable> inside the container
75 specified by <replaceable>name</replaceable>.
76 -->
dc421f3a 77 <command>lxc-execute</command> は指定した <replaceable>command</replaceable> を、<replaceable>name</replaceable> で指定したコンテナ内で実行します。
57da8c32
KY
78 </para>
79 <para>
80 <!--
81 It will setup the container
82 according to the configuration previously defined with the
83 lxc-create command or with the configuration file parameter.
84 If no configuration is
85 defined, the default isolation is used.
86 -->
dc421f3a
KY
87 このコマンドは、lxc-create コマンドであらかじめ定義した設定、もしくはパラメータとして与えた設定ファイルを元にコンテナをセットアップします。
88 もし設定が定義されていない場合、デフォルトの隔離を使用します。
57da8c32
KY
89 </para>
90 <para>
91 <!--
92 This command is mainly used when you want to quickly launch an
93 application in an isolated environment.
94 -->
dc421f3a 95 このコマンドは主に、素早く単一のアプリケーションを隔離された環境で動作させたい時に使います。
57da8c32
KY
96 </para>
97 <para>
98 <!--
99 <command>lxc-execute</command> command will run the
100 specified command into the container via an intermediate
101 process, <command>lxc-init</command>.
102 This lxc-init after launching the specified command,
103 will wait for its end and all other reparented processes.
36b33520 104 (to support daemons in the container).
57da8c32
KY
105 In other words, in the
106 container, <command>lxc-init</command> has the pid 1 and the
107 first process of the application has the pid 2.
108 -->
dc421f3a
KY
109 <command>lxc-execute</command> は、<command>lxc-init</command> を間にはさんで、コンテナ内で特定のコマンドを実行します。
110 lxc-init は、指定されたコマンドが実行された後は、そのコマンドの終了と、そのコマンドから生成された全てのプロセスの終了を待ちます (これにより、コンテナ内でデーモンのサポートが可能になります)。
111 言いかえると、コンテナ内では <command>lxc-init</command> が pid 1 となり、アプリケーションの最初のプロセスの pid が 2 となります。
57da8c32
KY
112 </para>
113 <para>
114 <!--
115 The above <command>lxc-init</command> is designed to forward received
116 signals to the started command.
57da8c32 117 -->
dc421f3a 118 前述の <command>lxc-init</command> は、受け取ったシグナルを開始したコマンドに送るように設計されています。
57da8c32
KY
119 </para>
120 </refsect1>
121
122 <refsect1>
123 <title><!-- Options -->オプション</title>
124 <variablelist>
125
126 <varlistentry>
127 <term>
128 <option>-f, --rcfile <replaceable>config_file</replaceable></option>
129 </term>
130 <listitem>
131 <para>
132 <!--
133 Specify the configuration file to configure the virtualization
134 and isolation functionalities for the container.
135 -->
dc421f3a 136 コンテナに設定したい仮想化および隔離機能の設定を行う設定ファイルを指定します。
57da8c32
KY
137 </para>
138 <para>
139 <!--
140 This configuration file if present will be used even if there is
141 already a configuration file present in the previously created
142 container (via lxc-create).
143 -->
dc421f3a 144 もしコンテナ作成前に (lxc-create によって) あらかじめ設定ファイルが指定されている場合であっても、指定した設定ファイルが使われます。
57da8c32
KY
145 </para>
146 </listitem>
147 </varlistentry>
148 <varlistentry>
149 <term>
150 <option>-s, --define <replaceable>KEY=VAL</replaceable></option>
151 </term>
152 <listitem>
153 <para>
154 <!--
155 Assign value <replaceable>VAL</replaceable> to configuration
156 variable <replaceable>KEY</replaceable>. This overrides any
157 assignment done in <replaceable>config_file</replaceable>.
158 -->
dc421f3a 159 設定変数 <replaceable>KEY</replaceable> の値を <replaceable>VAL</replaceable> に設定します。この設定は <replaceable>config_file</replaceable> で設定された値を上書きします。
57da8c32
KY
160 </para>
161 </listitem>
162 </varlistentry>
f6300ff5
KY
163
164 <varlistentry>
165 <term>
166 <option>-d, --daemon</option>
167 </term>
168 <listitem>
169 <para>
170 <!--
171 Run the container as a daemon. As the container has no
172 more tty, if an error occurs nothing will be displayed,
173 the log file can be used to check the error.
174 -->
175 コンテナをデーモンとして実行します。コンテナには TTY がありませんので、エラーが発生した場合は何も表示されません。エラーのチェックにはログファイルを使用すると良いでしょう。
176 </para>
177 </listitem>
178 </varlistentry>
179
a4a0bba4
KY
180 <varlistentry>
181 <term>
182 <option>--u, --uid <replaceable>uid</replaceable></option>
183 </term>
184 <listitem>
185 <para>
186 <!--
187 Executes the <replaceable>command</replaceable> with user ID
188 <replaceable>uid</replaceable> inside the container.
189 -->
190 コンテナ内で、ユーザ ID <replaceable>uid</replaceable> で <replaceable>command</replaceable> を実行します。
191 </para>
192 </listitem>
193 </varlistentry>
194
195 <varlistentry>
196 <term>
197 <option>--g, --gid <replaceable>gid</replaceable></option>
198 </term>
199 <listitem>
200 <para>
201 <!--
202 Executes the <replaceable>command</replaceable> with group ID
203 <replaceable>gid</replaceable> inside the container.
204 -->
205 コンテナ内で、グループ ID <replaceable>gid</replaceable> で <replaceable>command</replaceable> を実行します。
206 </para>
207 </listitem>
208 </varlistentry>
209
57da8c32
KY
210 <varlistentry>
211 <term><option>--</option></term>
212 <listitem>
213 <para>
214 <!--
215 Signal the end of options and disables further option
216 processing. Any arguments after the &#045;&#045; are treated as
a5ba9671 217 arguments to <replaceable>command</replaceable>.
57da8c32 218 -->
dc421f3a
KY
219 オプション指定の最後の印で、それ以上のオプションの処理を止めます。
220 -- の後の引数は実行する <replaceable>command</replaceable> の引数として扱われます。
57da8c32
KY
221 </para>
222 <para>
223 <!--
a5ba9671
KY
224 This option is useful when you want specify options
225 to <replaceable>command</replaceable> and don't want
226 <command>lxc-execute</command> to interpret them.
57da8c32 227 -->
dc421f3a 228 このオプションは、<replaceable>command</replaceable> にオプションを指定したいときに、<command>lxc-execute</command> がそのオプションを読み取ってほしくないときに役に立ちます。
57da8c32
KY
229 </para>
230 </listitem>
231 </varlistentry>
232
233 </variablelist>
234
235 </refsect1>
236
237 &commonoptions;
238
239 <refsect1>
240 <title><!-- Diagnostic -->診断</title>
241
242 <variablelist>
243
244 <varlistentry>
245 <term>The container is busy</term>
246 <listitem>
247 <para>
248 <!--
249 The specified container is already running an
250 application. You should stop it before reuse this
251 container or create a new one.
252 -->
dc421f3a 253 指定したコンテナが既にアプリケーションを実行中の場合。コンテナを再使用したり、新しく作成する前にコンテナを止める必要があります。
57da8c32
KY
254 </para>
255 </listitem>
256 </varlistentry>
257
258 </variablelist>
259
260 </refsect1>
261
262 &seealso;
263
264 <refsect1>
265 <title><!-- Author -->作者</title>
266 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
267 </refsect1>
268
269</refentry>
270
271<!-- Keep this comment at the end of the file
272Local variables:
273mode: sgml
274sgml-omittag:t
275sgml-shorttag:t
276sgml-minimize-attributes:nil
277sgml-always-quote-attributes:t
278sgml-indent-step:2
279sgml-indent-data:t
280sgml-parent-document:nil
281sgml-default-dtd-file:nil
282sgml-exposed-tags:nil
283sgml-local-catalogs:nil
284sgml-local-ecat-files:nil
285End:
286-->