Debian Codegraph @

doc/ja/lxc-start.sgml.in

raw
1 <!-- SPDX-License-Identifier: LGPL-2.1+ -->
2
3 <!DOCTYPE refentry PUBLIC @docdtd@ [
4
5 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
6 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
7 ]>
8
9 <refentry>
10
11 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
12
13 <refmeta>
14 <refentrytitle>lxc-start</refentrytitle>
15 <manvolnum>1</manvolnum>
16 </refmeta>
17
18 <refnamediv>
19 <refname>lxc-start</refname>
20
21 <refpurpose>
22 <!--
23 run an application inside a container.
24 -->
25 コンテナ内でのアプリケーションの実行
26 </refpurpose>
27 </refnamediv>
28
29 <refsynopsisdiv>
30 <cmdsynopsis>
31 <command>lxc-start</command>
32 <arg choice="req">-n <replaceable>name</replaceable></arg>
33 <arg choice="opt">-f <replaceable>config_file</replaceable></arg>
34 <arg choice="opt">-c <replaceable>console_device</replaceable></arg>
35 <arg choice="opt">-L <replaceable>console_logfile</replaceable></arg>
36 <arg choice="opt">-d</arg>
37 <arg choice="opt">-F</arg>
38 <arg choice="opt">-p <replaceable>pid_file</replaceable></arg>
39 <arg choice="opt">-s KEY=VAL</arg>
40 <arg choice="opt">-C</arg>
41 <arg choice="opt">--share-[net|ipc|uts] <replaceable>name|pid</replaceable></arg>
42 <arg choice="opt">command</arg>
43 </cmdsynopsis>
44 </refsynopsisdiv>
45
46 <refsect1>
47 <title><!-- Description -->説明</title>
48
49 <para>
50 <!--
51 <command>lxc-start</command> runs the specified
52 <replaceable>command</replaceable> inside the container
53 specified by <replaceable>name</replaceable>.
54 -->
55 <command>lxc-start</command> は <replaceable>command</replaceable> で指定されたコマンドを、<replaceable>name</replaceable> で指定されたコンテナ内で実行します。
56 </para>
57 <para>
58 <!--
59 It will setup the container
60 according to the configuration previously defined with the
61 lxc-create command or with the configuration file parameter.
62 If no configuration is
63 defined, the default isolation is used.
64 -->
65 このコマンドは、lxc-create コマンドもしくは設定ファイルのパラメータであらかじめ定義された設定に従ってコンテナをセットアップします。
66 もし設定が定義されていない場合は、デフォルトの隔離状態を使用します。
67 </para>
68 <para>
69 <!--
70 If no command is specified, <command>lxc-start</command> will
71 use the command defined in lxc.init.cmd or if not set, the default
72 <command>"/sbin/init"</command> command to run a system
73 container.
74 -->
75 もし command が指定されない場合は、<command>lxc-start</command> はシステムコンテナを実行するためのコマンドとして、lxc.init.cmd で設定されたコマンドを使用します。
76 もし lxc.init.cmd が設定されていない場合は、デフォルトで <command>"/sbin/init"</command> を使用します。
77 </para>
78
79 </refsect1>
80
81 <refsect1>
82
83 <title><!-- Options -->オプション</title>
84
85 <variablelist>
86
87 <varlistentry>
88 <term>
89 <option>-d, --daemon</option>
90 </term>
91 <listitem>
92 <para>
93 <!--
94 Run the container as a daemon. As the container has no
95 more tty, if an error occurs nothing will be displayed,
96 the log file can be used to check the error.
97 -->
98 コンテナをデーモンとして実行します。
99 コンテナはそれ以上の tty を持ちませんので、もしエラーが起きても何も表示されません。
100 エラーのチェックにはログファイルを使用することができます。(これがデフォルトのモードです)
101 </para>
102 </listitem>
103 </varlistentry>
104
105 <varlistentry>
106 <term>
107 <option>-F, --foreground</option>
108 </term>
109 <listitem>
110 <para>
111 <!--
112 Run the container in the foreground. In this mode, the container
113 console will be attached to the current tty and signals will be routed
114 directly to the container.
115 -->
116 コンテナをフォアグラウンドで実行します。このモードでは、コンテナコンソールは現在使用中の tty に割り当てられ、シグナルはコンテナに直接送られます。
117 </para>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry>
122 <term>
123 <option>-p, --pidfile <replaceable>pid_file</replaceable></option>
124 </term>
125 <listitem>
126 <para>
127 <!--
128 Create a file with the process id.
129 -->
130 プロセス ID を含むファイルを作製します。
131 </para>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry>
136 <term>
137 <option>-f, --rcfile <replaceable>config_file</replaceable></option>
138 </term>
139 <listitem>
140 <para>
141 <!--
142 Specify the configuration file to configure the virtualization
143 and isolation functionalities for the container.
144 -->
145 コンテナの仮想化、隔離機能の設定のための設定ファイルを指定します。
146 </para>
147 <para>
148 <!--
149 This configuration file if present will be used even if there is
150 already a configuration file present in the previously created
151 container (via lxc-create).
152 -->
153 (lxc-create 経由で) 前もってコンテナが作られた際の設定ファイルが既にあった場合でも、このオプションが指定された場合は、指定した設定ファイルが使用されます。
154 </para>
155 </listitem>
156 </varlistentry>
157
158 <varlistentry>
159 <term>
160 <option>-c,
161 --console <replaceable>console_device</replaceable></option>
162 </term>
163 <listitem>
164 <para>
165 <!--
166 Specify a device to use for the container's console, for example
167 /dev/tty8. If this option is not specified the current terminal
168 will be used unless <option>-d</option> is specified.
169 -->
170 コンテナのコンソールに使用するデバイスを指定します。例えば /dev/tty8 のように指定します。
171 このオプションが指定されない時は、<option>-d</option> が指定されない限りは、現在のターミナルを使用します。
172 </para>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry>
177 <term>
178 <option>-L,
179 --console-log <replaceable>console_logfile</replaceable></option>
180 </term>
181 <listitem>
182 <para>
183 <!--
184 Specify a file to log the container's console output to.
185 -->
186 コンテナのコンソール出力のログを出力するファイルを指定します。
187 </para>
188 </listitem>
189 </varlistentry>
190
191 <varlistentry>
192 <term>
193 <option>-s, --define <replaceable>KEY=VAL</replaceable></option>
194 </term>
195 <listitem>
196 <para>
197 <!--
198 Assign value <replaceable>VAL</replaceable> to configuration
199 variable <replaceable>KEY</replaceable>. This overrides any
200 assignment done in <replaceable>config_file</replaceable>.
201 -->
202 設定変数 <replaceable>KEY</replaceable> に対する設定値として <replaceable>VAL</replaceable> を設定します。
203 この設定は、<replaceable>config_file</replaceable> で既に設定されている値も上書きします。
204 </para>
205 </listitem>
206 </varlistentry>
207
208 <varlistentry>
209 <term>
210 <option>-C,
211 --close-all-fds</option>
212 </term>
213 <listitem>
214 <para>
215 <!--
216 If any file descriptors are inherited, close them. If this option
217 is not specified, then <command>lxc-start</command> will exit with
218 failure instead. Note: <replaceable>&#045;&#045;daemon</replaceable> implies
219 <replaceable>&#045;&#045;close-all-fds</replaceable>.
220 -->
221 継承しているファイルディスクリプタが存在する場合、それをクローズします。
222 このオプションが指定されない場合、<command>lxc-start</command> の実行は失敗して終了します。
223 注意: <replaceable>--daemon</replaceable> オプションは、<replaceable>--close-all-fds</replaceable> オプションを指定しなくても指定している場合と同様の動きをします。
224 </para>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry>
229 <term>
230 <option>--share-net <replaceable>name|pid</replaceable></option>
231 </term>
232 <listitem>
233 <para>
234 <!--
235 Inherit a network namespace from
236 a <replaceable>name</replaceable> container or
237 a <replaceable>pid</replaceable>. The network namespace
238 will continue to be managed by the original owner. The
239 network configuration of the starting container is ignored
240 and the up/down scripts won't be executed.
241 -->
242 名前が <replaceable>name</replaceable> である、もしくは PID が <replaceable>pid</replaceable> であるコンテナとネットワーク名前空間を共有します。
243 ネットワーク名前空間は引き続き元の所有者が管理します。
244 開始するコンテナのネットワーク設定は無視され、up/down のスクリプトは実行されません。
245 </para>
246 </listitem>
247 </varlistentry>
248
249 <varlistentry>
250 <term>
251 <option>--share-ipc <replaceable>name|pid</replaceable></option>
252 </term>
253 <listitem>
254 <para>
255 <!--
256 Inherit an IPC namespace from
257 a <replaceable>name</replaceable> container or
258 a <replaceable>pid</replaceable>.
259 -->
260 名前が <replaceable>name</replaceable> である、もしくは PID が <replaceable>pid</replaceable> であるコンテナと IPC 名前空間を共有します。
261 </para>
262 </listitem>
263 </varlistentry>
264
265 <varlistentry>
266 <term>
267 <option>--share-uts <replaceable>name|pid</replaceable></option>
268 </term>
269 <listitem>
270 <para>
271 <!--
272 Inherit a UTS namespace from
273 a <replaceable>name</replaceable> container or
274 a <replaceable>pid</replaceable>. The starting LXC will
275 not set the hostname, but the container OS may do it
276 anyway.
277 -->
278 名前が <replaceable>name</replaceable> である、もしくは PID が <replaceable>pid</replaceable> であるコンテナと UTS 名前空間を共有します。
279 LXC は開始するときににはホスト名を設定しませんが、コンテナ内の OS が何らかの方法でホスト名を設定するかもしれません。
280 </para>
281 </listitem>
282 </varlistentry>
283
284 </variablelist>
285
286 </refsect1>
287
288 &commonoptions;
289
290 <refsect1>
291 <title><!-- Diagnostic -->診断</title>
292
293 <variablelist>
294
295 <varlistentry>
296 <term>The container is busy</term>
297 <listitem>
298 <para>
299 <!--
300 The specified container is already running an
301 application. You should stop it before reuse this
302 container or create a new one.
303 -->
304 指定したコンテナは既に実行済みです。
305 このコンテナを使用する前に既に起動しているコンテナを停止するか、新しいものを作成する必要があります。
306 </para>
307 </listitem>
308 </varlistentry>
309
310 </variablelist>
311
312 </refsect1>
313
314 &seealso;
315
316 </refentry>
317
318 <!-- Keep this comment at the end of the file
319 Local variables:
320 mode: sgml
321 sgml-omittag:t
322 sgml-shorttag:t
323 sgml-minimize-attributes:nil
324 sgml-always-quote-attributes:t
325 sgml-indent-step:2
326 sgml-indent-data:t
327 sgml-parent-document:nil
328 sgml-default-dtd-file:nil
329 sgml-exposed-tags:nil
330 sgml-local-catalogs:nil
331 sgml-local-ecat-files:nil
332 End:
333 -->