3 lxc: linux Container library
5 (C) Copyright IBM Corp. 2007, 2008
8 Daniel Lezcano <dlezcano at fr.ibm.com>
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 <!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
28 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
29 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
37 <refentrytitle>lxc-start</refentrytitle>
38 <manvolnum>1</manvolnum>
42 <refname>lxc-start</refname>
45 run an application inside a container.
50 <cmdsynopsis><command>lxc-start <replaceable>-n
51 name</replaceable> <optional>-f
52 config_file</optional> <optional>-c
53 console_file</optional> <optional>-d</optional> <optional>-s
54 KEY=VAL</optional> <optional>-C</optional>
55 <optional>command</optional></command></cmdsynopsis>
59 <title>Description</title>
62 <command>lxc-start</command> runs the specified
63 <replaceable>command</replaceable> inside the container
64 specified by <replaceable>name</replaceable>.
67 It will setup the container
68 according to the configuration previously defined with the
69 lxc-create command or with the configuration file parameter.
70 If no configuration is
71 defined, the default isolation is used.
74 The orphan process group
75 and daemon are not supported by this command, use
76 the <command>lxc-execute</command> command instead.
79 If no command is specified, <command>lxc-start</command> will
81 <command>"/sbin/init"</command> command to run a system
89 <title>Options</title>
95 <option>-d, --daemon</option>
99 Run the container as a daemon. As the container has no
100 more tty, if an error occurs nothing will be displayed,
101 the log file can be used to check the error.
108 <option>-f, --rcfile <replaceable>config_file</replaceable></option>
112 Specify the configuration file to configure the virtualization
113 and isolation functionalities for the container.
116 This configuration file if present will be used even if there is
117 already a configuration file present in the previously created
118 container (via lxc-create).
126 --console <replaceable>console_file</replaceable></option>
130 Specify a file to output the container console. If the
131 option is not specified the output will go the terminal
132 except if the <option>-d</option> is specified.
139 <option>-s, --define <replaceable>KEY=VAL</replaceable></option>
143 Assign value <replaceable>VAL</replaceable> to configuration
144 variable <replaceable>KEY</replaceable>. This overrides any
145 assignment done in <replaceable>config_file</replaceable>.
153 --close-all-fds</option>
157 If any file descriptors are inherited, close them. If this option
158 is not specified, then <command>lxc-start</command> will exit with
159 failure instead. Note: <replaceable>--daemon</replaceable> implies
160 <replaceable>--close-all-fds</replaceable>.
172 <title>Diagnostic</title>
177 <term>The container is busy</term>
180 The specified container is already running an
181 application. You should stop it before reuse this
182 container or create a new one.
194 <title>Author</title>
195 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
200 <!-- Keep this comment at the end of the file
205 sgml-minimize-attributes:nil
206 sgml-always-quote-attributes:t
209 sgml-parent-document:nil
210 sgml-default-dtd-file:nil
211 sgml-exposed-tags:nil
212 sgml-local-catalogs:nil
213 sgml-local-ecat-files:nil