Langue: en

Autres versions - même langue

Version: 29 April 2009 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)


lxc-execute - run an application inside a container.


lxc-execute -n name [-f config_file] command


lxc-execute runs the command inside the container specified by name. This command should be used to launch an application, eg. sshd or bash.

If the container does not exist, it is automatically created and destroyed at the end. The command can use the configuration file to create itself the container like lxc-create would do and will destroy the container when the application exits. If the container was previously created with the lxc-create command, when the application exits, the container is not destroyed and it can be reused later.

This command is mainly used when you want to quickly launch an application in an isolated environment. It will create an intermediate process allowing you application to daemonize in the pid namespace and will mount the proc filesystem to complete the pid isolation.


-n name
Specify the container name to be executed.
-f config_file
Specify the configuration file to configure the virtualization and isolation functionalities for the container.


The container is busy
The specified container is already running an application. You should stop it before reuse this container or create a new one.


lxc-create(1), lxc-destroy(1), lxc-start(1), lxc-stop(1), lxc.conf(5)


Daniel Lezcano <daniel.lezcano@free.fr>