]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-start.sgml.in
Fix package name needed for building docs with RPM
[mirror_lxc.git] / doc / lxc-start.sgml.in
CommitLineData
d823d5b9 1<!--
2
3lxc: linux Container library
4
5(C) Copyright IBM Corp. 2007, 2008
6
7Authors:
8Daniel Lezcano <dlezcano at fr.ibm.com>
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
22Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
24-->
25
aa8d013e 26<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
99e4008c 27
10fba81b 28<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
99e4008c
MN
29<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
30]>
d823d5b9 31
32<refentry>
33
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
35
36 <refmeta>
37 <refentrytitle>lxc-start</refentrytitle>
38 <manvolnum>1</manvolnum>
39 </refmeta>
40
41 <refnamediv>
42 <refname>lxc-start</refname>
43
44 <refpurpose>
45 run an application inside a container.
46 </refpurpose>
47 </refnamediv>
48
49 <refsynopsisdiv>
b4578c5b
DE
50 <cmdsynopsis>
51 <command>lxc-start</command>
52 <arg choice="req">-n <replaceable>name</replaceable></arg>
53 <arg choice="opt">-f <replaceable>config_file</replaceable></arg>
54 <arg choice="opt">-c <replaceable>console_file</replaceable></arg>
55 <arg choice="opt">-d</arg>
56 <arg choice="opt">-s KEY=VAL</arg>
57 <arg choice="opt">-C</arg>
58 <arg choice="opt">command</arg>
59 </cmdsynopsis>
d823d5b9 60 </refsynopsisdiv>
61
62 <refsect1>
63 <title>Description</title>
64
65 <para>
94b81f61
MN
66 <command>lxc-start</command> runs the specified
67 <replaceable>command</replaceable> inside the container
68 specified by <replaceable>name</replaceable>.
69 </para>
70 <para>
71 It will setup the container
72 according to the configuration previously defined with the
73 lxc-create command or with the configuration file parameter.
74 If no configuration is
75 defined, the default isolation is used.
76 </para>
77 <para>
78 The orphan process group
6a22713f
DL
79 and daemon are not supported by this command, use
80 the <command>lxc-execute</command> command instead.
94b81f61
MN
81 </para>
82 <para>
d823d5b9 83 If no command is specified, <command>lxc-start</command> will
84 use the default
85 <command>"/sbin/init"</command> command to run a system
86 container.
d823d5b9 87 </para>
88
89 </refsect1>
90
c36583c3
DL
91 <refsect1>
92
93 <title>Options</title>
94
95 <variablelist>
96
97 <varlistentry>
98 <term>
99 <option>-d, --daemon</option>
100 </term>
101 <listitem>
102 <para>
103 Run the container as a daemon. As the container has no
104 more tty, if an error occurs nothing will be displayed,
105 the log file can be used to check the error.
106 </para>
107 </listitem>
108 </varlistentry>
109
0f71d073
DL
110 <varlistentry>
111 <term>
94b81f61 112 <option>-f, --rcfile <replaceable>config_file</replaceable></option>
0f71d073
DL
113 </term>
114 <listitem>
115 <para>
116 Specify the configuration file to configure the virtualization
117 and isolation functionalities for the container.
118 </para>
becc0400
MN
119 <para>
120 This configuration file if present will be used even if there is
121 already a configuration file present in the previously created
122 container (via lxc-create).
123 </para>
0f71d073
DL
124 </listitem>
125 </varlistentry>
126
829dd918
DL
127 <varlistentry>
128 <term>
129 <option>-c,
130 --console <replaceable>console_file</replaceable></option>
131 </term>
132 <listitem>
133 <para>
134 Specify a file to output the container console. If the
135 option is not specified the output will go the terminal
136 except if the <option>-d</option> is specified.
137 </para>
138 </listitem>
139 </varlistentry>
140
33ba4ad7
CLG
141 <varlistentry>
142 <term>
94b81f61 143 <option>-s, --define <replaceable>KEY=VAL</replaceable></option>
33ba4ad7
CLG
144 </term>
145 <listitem>
146 <para>
147 Assign value <replaceable>VAL</replaceable> to configuration
148 variable <replaceable>KEY</replaceable>. This overrides any
149 assignment done in <replaceable>config_file</replaceable>.
150 </para>
151 </listitem>
152 </varlistentry>
153
1305dd24
SH
154 <varlistentry>
155 <term>
156 <option>-C,
157 --close-all-fds</option>
158 </term>
159 <listitem>
160 <para>
161 If any file descriptors are inherited, close them. If this option
162 is not specified, then <command>lxc-start</command> will exit with
163 failure instead. Note: <replaceable>--daemon</replaceable> implies
164 <replaceable>--close-all-fds</replaceable>.
165 </para>
166 </listitem>
167 </varlistentry>
168
c36583c3
DL
169 </variablelist>
170
171 </refsect1>
172
10fba81b 173 &commonoptions;
d823d5b9 174
175 <refsect1>
176 <title>Diagnostic</title>
177
178 <variablelist>
179
180 <varlistentry>
181 <term>The container is busy</term>
182 <listitem>
183 <para>
184 The specified container is already running an
185 application. You should stop it before reuse this
186 container or create a new one.
187 </para>
188 </listitem>
189 </varlistentry>
190
d823d5b9 191 </variablelist>
192
193 </refsect1>
194
99e4008c 195 &seealso;
d823d5b9 196
197 <refsect1>
198 <title>Author</title>
199 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
200 </refsect1>
201
202</refentry>
203
204<!-- Keep this comment at the end of the file
205Local variables:
206mode: sgml
207sgml-omittag:t
208sgml-shorttag:t
209sgml-minimize-attributes:nil
210sgml-always-quote-attributes:t
211sgml-indent-step:2
212sgml-indent-data:t
213sgml-parent-document:nil
214sgml-default-dtd-file:nil
215sgml-exposed-tags:nil
216sgml-local-catalogs:nil
217sgml-local-ecat-files:nil
218End:
219-->