]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-start.sgml.in
man update lxc-execute and lxc-start (V2)
[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
99e4008c
MN
26<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
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>
6a22713f
DL
50 <cmdsynopsis><command>lxc-start <replaceable>-n
51 name</replaceable> <optional>-f
33ba4ad7
CLG
52 config_file</optional> <optional>-s KEY=VAL</optional>
53 <optional>command</optional></command></cmdsynopsis>
d823d5b9 54 </refsynopsisdiv>
55
56 <refsect1>
57 <title>Description</title>
58
59 <para>
94b81f61
MN
60 <command>lxc-start</command> runs the specified
61 <replaceable>command</replaceable> inside the container
62 specified by <replaceable>name</replaceable>.
63 </para>
64 <para>
65 It will setup the container
66 according to the configuration previously defined with the
67 lxc-create command or with the configuration file parameter.
68 If no configuration is
69 defined, the default isolation is used.
70 </para>
71 <para>
72 The orphan process group
6a22713f
DL
73 and daemon are not supported by this command, use
74 the <command>lxc-execute</command> command instead.
94b81f61
MN
75 </para>
76 <para>
d823d5b9 77 If no command is specified, <command>lxc-start</command> will
78 use the default
79 <command>"/sbin/init"</command> command to run a system
80 container.
d823d5b9 81 </para>
82
83 </refsect1>
84
c36583c3
DL
85 <refsect1>
86
87 <title>Options</title>
88
89 <variablelist>
90
91 <varlistentry>
92 <term>
93 <option>-d, --daemon</option>
94 </term>
95 <listitem>
96 <para>
97 Run the container as a daemon. As the container has no
98 more tty, if an error occurs nothing will be displayed,
99 the log file can be used to check the error.
100 </para>
101 </listitem>
102 </varlistentry>
103
0f71d073
DL
104 <varlistentry>
105 <term>
94b81f61 106 <option>-f, --rcfile <replaceable>config_file</replaceable></option>
0f71d073
DL
107 </term>
108 <listitem>
109 <para>
110 Specify the configuration file to configure the virtualization
111 and isolation functionalities for the container.
112 </para>
113 </listitem>
114 </varlistentry>
115
33ba4ad7
CLG
116 <varlistentry>
117 <term>
94b81f61 118 <option>-s, --define <replaceable>KEY=VAL</replaceable></option>
33ba4ad7
CLG
119 </term>
120 <listitem>
121 <para>
122 Assign value <replaceable>VAL</replaceable> to configuration
123 variable <replaceable>KEY</replaceable>. This overrides any
124 assignment done in <replaceable>config_file</replaceable>.
125 </para>
126 </listitem>
127 </varlistentry>
128
c36583c3
DL
129 </variablelist>
130
131 </refsect1>
132
10fba81b 133 &commonoptions;
d823d5b9 134
135 <refsect1>
136 <title>Diagnostic</title>
137
138 <variablelist>
139
140 <varlistentry>
141 <term>The container is busy</term>
142 <listitem>
143 <para>
144 The specified container is already running an
145 application. You should stop it before reuse this
146 container or create a new one.
147 </para>
148 </listitem>
149 </varlistentry>
150
d823d5b9 151 </variablelist>
152
153 </refsect1>
154
99e4008c 155 &seealso;
d823d5b9 156
157 <refsect1>
158 <title>Author</title>
159 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
160 </refsect1>
161
162</refentry>
163
164<!-- Keep this comment at the end of the file
165Local variables:
166mode: sgml
167sgml-omittag:t
168sgml-shorttag:t
169sgml-minimize-attributes:nil
170sgml-always-quote-attributes:t
171sgml-indent-step:2
172sgml-indent-data:t
173sgml-parent-document:nil
174sgml-default-dtd-file:nil
175sgml-exposed-tags:nil
176sgml-local-catalogs:nil
177sgml-local-ecat-files:nil
178End:
179-->