]>
Commit | Line | Data |
---|---|---|
2b371b26 SY |
1 | <!-- |
2 | ||
3 | lxc: linux Container library | |
4 | ||
5 | (C) Copyright IBM Corp. 2007, 2008 | |
6 | ||
7 | Authors: | |
8 | Daniel Lezcano <daniel.lezcano at free.fr> | |
9 | ||
10 | This library is free software; you can redistribute it and/or | |
11 | modify it under the terms of the GNU Lesser General Public | |
12 | License as published by the Free Software Foundation; either | |
13 | version 2.1 of the License, or (at your option) any later version. | |
14 | ||
15 | This library is distributed in the hope that it will be useful, | |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 | Lesser General Public License for more details. | |
19 | ||
20 | You should have received a copy of the GNU Lesser General Public | |
21 | License along with this library; if not, write to the Free Software | |
22 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
23 | ||
24 | Translated into Korean | |
25 | by Sungbae Yoo <sungbae.yoo at samsung.com> | |
26 | ||
27 | --> | |
28 | ||
29 | <!DOCTYPE refentry PUBLIC @docdtd@ [ | |
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 | --> | |
51 | 컨테이너 내부로 응용 프로그램 실행 | |
52 | </refpurpose> | |
53 | </refnamediv> | |
54 | ||
55 | <refsynopsisdiv> | |
56 | <cmdsynopsis> | |
57 | <command>lxc-execute</command> | |
58 | <arg choice="req">-n <replaceable>name</replaceable></arg> | |
59 | <arg choice="opt">-f <replaceable>config_file</replaceable></arg> | |
60 | <arg choice="opt">-s KEY=VAL</arg> | |
61 | <arg choice="opt">-- <replaceable>command</replaceable></arg> | |
62 | </cmdsynopsis> | |
63 | </refsynopsisdiv> | |
64 | ||
65 | <refsect1> | |
66 | <title><!-- Description -->설명</title> | |
67 | ||
68 | <para> | |
69 | <!-- | |
70 | <command>lxc-execute</command> runs the specified | |
71 | <replaceable>command</replaceable> inside the container | |
72 | specified by <replaceable>name</replaceable>. | |
73 | --> | |
74 | <command>lxc-execute</command>는 지정한 <replaceable>command</replaceable>를 <replaceable>name</replaceable>라는 이름의 컨테이너 내부에서 실행한다. | |
75 | </para> | |
76 | <para> | |
77 | <!-- | |
78 | It will setup the container | |
79 | according to the configuration previously defined with the | |
80 | lxc-create command or with the configuration file parameter. | |
81 | If no configuration is | |
82 | defined, the default isolation is used. | |
83 | --> | |
84 | 이 명령어는 <command>lxc-create</command> 정의했던 설정을 토대로 또는 인수 | |
85 | 를 통해 넘긴 설정파일을 토대로 컨테이너를 세팅한다. | |
86 | 만약 정의된 설정이 없다면, 기본 고립 환경을 사용한다. | |
87 | </para> | |
88 | <para> | |
89 | <!-- | |
90 | This command is mainly used when you want to quickly launch an | |
91 | application in an isolated environment. | |
92 | --> | |
93 | 이 명령어들은 고립된 환경에서 응용 프로그램을 빠르게 실행해보고 싶을 때, 주로 사용한다. | |
94 | </para> | |
95 | <para> | |
96 | <!-- | |
97 | <command>lxc-execute</command> command will run the | |
98 | specified command into the container via an intermediate | |
99 | process, <command>lxc-init</command>. | |
100 | This lxc-init after launching the specified command, | |
101 | will wait for its end and all other reparented processes. | |
102 | (to support daemons in the container). | |
103 | In other words, in the | |
104 | container, <command>lxc-init</command> has the pid 1 and the | |
105 | first process of the application has the pid 2. | |
106 | --> | |
107 | <command>lxc-execute</command>명령어는 컨테이너 내부에서 <command>lxc-init</command> 프로세스를 통해 지정한 명령어를 실행한다. | |
108 | <command>lxc-init</command>은 지정한 명령어를 실행한 뒤에, 해당 명령어 및 그 명령어에서 실행된 모든 프로세스들을 기다린다(컨테이너 내에서 데몬을 지원하기 위한 것). | |
109 | 즉, 컨테이너내에서 <command>lxc-init</command>는 pid는 1이 되고, 그 다음으로 실행되는 응용 프로그램은 pid가 2가 된다. | |
110 | </para> | |
111 | <para> | |
112 | <!-- | |
113 | The above <command>lxc-init</command> is designed to forward received | |
114 | signals to the started command. | |
115 | --> | |
116 | <command>lxc-init</command>는 시그널들을 받아서 시작한 명령어에게 보내주도록 되어 있다. | |
117 | </para> | |
118 | </refsect1> | |
119 | ||
120 | <refsect1> | |
121 | <title><!-- Options -->옵션</title> | |
122 | <variablelist> | |
123 | ||
124 | <varlistentry> | |
125 | <term> | |
126 | <option>-f, --rcfile <replaceable>config_file</replaceable></option> | |
127 | </term> | |
128 | <listitem> | |
129 | <para> | |
130 | <!-- | |
131 | Specify the configuration file to configure the virtualization | |
132 | and isolation functionalities for the container. | |
133 | --> | |
134 | 컨테이너의 가상화나 고립 기능을 설정할 때 쓰일 설정파일을 지정한다. | |
135 | </para> | |
136 | <para> | |
137 | <!-- | |
138 | This configuration file if present will be used even if there is | |
139 | already a configuration file present in the previously created | |
140 | container (via lxc-create). | |
141 | --> | |
142 | 지정한 설정파일이 존재한다면, 이전에 생성된(lxc-create를 통해) 컨테이너에 설정파일이 이미 존재한다고 하더라도 지정한 설정파일을 사용한다. | |
143 | </para> | |
144 | </listitem> | |
145 | </varlistentry> | |
146 | <varlistentry> | |
147 | <term> | |
148 | <option>-s, --define <replaceable>KEY=VAL</replaceable></option> | |
149 | </term> | |
150 | <listitem> | |
151 | <para> | |
152 | <!-- | |
153 | Assign value <replaceable>VAL</replaceable> to configuration | |
154 | variable <replaceable>KEY</replaceable>. This overrides any | |
155 | assignment done in <replaceable>config_file</replaceable>. | |
156 | --> | |
157 | <replaceable>VAL</replaceable> 값을 <replaceable>KEY</replaceable> 설정변수에 넣는다. | |
158 | 이는 <replaceable>config_file</replaceable>에서의 설정을 덮어쓴다. | |
159 | </para> | |
160 | </listitem> | |
161 | </varlistentry> | |
162 | <varlistentry> | |
163 | <term><option>--</option></term> | |
164 | <listitem> | |
165 | <para> | |
166 | <!-- | |
167 | Signal the end of options and disables further option | |
168 | processing. Any arguments after the -- are treated as | |
169 | arguments to <replaceable>command</replaceable>. | |
170 | --> | |
171 | 옵션이 끝임을 지정하고 더이상 옵션에 대한 처리를 하지 않는다. | |
172 | -- 이후에 오는 모든 인수는 <replaceable>command</replaceable>의 인수로서 처리된다. | |
173 | </para> | |
174 | <para> | |
175 | <!-- | |
176 | This option is useful when you want specify options | |
177 | to <replaceable>command</replaceable> and don't want | |
178 | <command>lxc-execute</command> to interpret them. | |
179 | --> | |
180 | 이것은 <replaceable>command</replaceable>에게 옵션을 지정하고, <command>lxc-execute</command>가 그 옵션을 처리하지 않게 하는데 유용하게 사용된다. | |
181 | </para> | |
182 | </listitem> | |
183 | </varlistentry> | |
184 | ||
185 | </variablelist> | |
186 | ||
187 | </refsect1> | |
188 | ||
189 | &commonoptions; | |
190 | ||
191 | <refsect1> | |
192 | <title><!-- Diagnostic -->진단</title> | |
193 | ||
194 | <variablelist> | |
195 | ||
196 | <varlistentry> | |
197 | <term>The container is busy</term> | |
198 | <listitem> | |
199 | <para> | |
200 | <!-- | |
201 | The specified container is already running an | |
202 | application. You should stop it before reuse this | |
203 | container or create a new one. | |
204 | --> | |
205 | 지정한 컨테이너가 이미 실행중인 경우이다. 컨테이너를 사용하고 싶다면 컨테이너를 중지시켜야 한다. 또는 새로운 컨테이너를 만들 수도 있다. | |
206 | </para> | |
207 | </listitem> | |
208 | </varlistentry> | |
209 | ||
210 | </variablelist> | |
211 | ||
212 | </refsect1> | |
213 | ||
214 | &seealso; | |
215 | ||
216 | <refsect1> | |
217 | <title><!-- Author -->저자</title> | |
218 | <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para> | |
219 | </refsect1> | |
220 | ||
221 | </refentry> | |
222 | ||
223 | <!-- Keep this comment at the end of the file | |
224 | Local variables: | |
225 | mode: sgml | |
226 | sgml-omittag:t | |
227 | sgml-shorttag:t | |
228 | sgml-minimize-attributes:nil | |
229 | sgml-always-quote-attributes:t | |
230 | sgml-indent-step:2 | |
231 | sgml-indent-data:t | |
232 | sgml-parent-document:nil | |
233 | sgml-default-dtd-file:nil | |
234 | sgml-exposed-tags:nil | |
235 | sgml-local-catalogs:nil | |
236 | sgml-local-ecat-files:nil | |
237 | End: | |
238 | --> |