MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
<!
ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
<
docinfo><
date>@LXC_GENERATE_DATE@</
date></
docinfo>
<
refentrytitle>lxc-start</
refentrytitle>
<
refname>lxc-start</
refname>
run an application inside a container.
<
command>lxc-start</
command>
<
arg choice="req">-n <
replaceable>name</
replaceable></
arg>
<
arg choice="opt">-f <
replaceable>config_file</
replaceable></
arg>
<
arg choice="opt">-c <
replaceable>console_file</
replaceable></
arg>
<
arg choice="opt">-d</
arg>
<
arg choice="opt">-p <
replaceable>pid_file</
replaceable></
arg>
<
arg choice="opt">-s KEY=VAL</
arg>
<
arg choice="opt">-C</
arg>
<
arg choice="opt">command</
arg>
<
title>Description</
title>
<
command>lxc-start</
command> runs the specified
<
replaceable>command</
replaceable> inside the container
specified by <
replaceable>name</
replaceable>.
It will setup the container
according to the configuration previously defined with the
lxc-create command or with the configuration file parameter.
defined, the default isolation is used.
and daemon are not supported by this command, use
the <
command>lxc-execute</
command> command instead.
If no command is specified, <
command>lxc-start</
command> will
<
command>"/
sbin/
init"</
command> command to run a system
<
option>-d, --daemon</
option>
Run the container as a daemon. As the container has no
more tty, if an error occurs nothing will be displayed,
the log file can be used to check the error.
<
option>-p, --pidfile <
replaceable>pid_file</
replaceable></
option>
Create a file with the process id.
<
option>-f, --rcfile <
replaceable>config_file</
replaceable></
option>
Specify the configuration file to configure the virtualization
and isolation functionalities for the container.
This configuration file if present will be used even if there is
already a configuration file present in the previously created
container (via lxc-create).
--console <
replaceable>console_file</
replaceable></
option>
Specify a file to output the container console. If the
option is not specified the output will go the terminal
except if the <
option>-d</
option> is specified.
<
option>-s, --define <
replaceable>KEY=VAL</
replaceable></
option>
Assign value <
replaceable>VAL</
replaceable> to configuration
variable <
replaceable>KEY</
replaceable>. This overrides any
assignment done in <
replaceable>config_file</
replaceable>.
If any file descriptors are inherited, close them. If this option
is not specified, then <
command>lxc-start</
command> will exit with
failure instead. Note: <
replaceable>--daemon</
replaceable> implies
<
replaceable>--close-all-fds</
replaceable>.
<
title>Diagnostic</
title>
<
term>The container is busy</
term>
The specified container is already running an
application. You should stop it before reuse this
container or create a new one.
<
para>Daniel Lezcano <
email>daniel.lezcano@free.fr</
email></
para>
<!-- Keep this comment at the end of the file sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-default-dtd-file:nil sgml-local-ecat-files:nil