~ubuntu-branches/ubuntu/oneiric/lxc/oneiric-201108112013

« back to all changes in this revision

Viewing changes to doc/lxc-execute.1

  • Committer: Stéphane Graber
  • Date: 2011-08-11 18:43:59 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: stgraber@ubuntu.com-20110811184359-lkqgeuimw8n5efzj
Merge 0.7.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\" This manpage has been automatically generated by docbook2man 
2
 
.\" from a DocBook document.  This tool can be found at:
3
 
.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
4
 
.\" Please send any bug reports, improvements, comments, patches, 
5
 
.\" etc. to Steve Cheng <steve@ggi-project.org>.
6
 
.TH "LXC-EXECUTE" "1" "20 May 2011" "" ""
7
 
 
8
 
.SH NAME
9
 
lxc-execute \- run an application inside a container.
10
 
.SH SYNOPSIS
11
 
 
12
 
\fBlxc-execute \fI-n name\fB
13
 
[-f config_file] [-s KEY=VAL
14
 
]
15
 
\fIcommand\fB\fR
16
 
 
17
 
.SH "DESCRIPTION"
18
 
.PP
19
 
\fBlxc-execute\fR runs the specified
20
 
\fIcommand\fR inside the container
21
 
specified by \fIname\fR\&.
22
 
.PP
23
 
It will setup the container
24
 
according to the configuration previously defined with the
25
 
lxc-create command or with the configuration file parameter.
26
 
If no configuration is
27
 
defined, the default isolation is used.
28
 
.PP
29
 
This command is mainly used when you want to quickly launch an
30
 
application in an isolated environment.
31
 
.PP
32
 
\fBlxc-execute\fR command will run the
33
 
specified command into the container via an intermediate
34
 
process, \fBlxc-init\fR\&.
35
 
This lxc-init after launching  the specified command,
36
 
will wait for its end and all other reparented processes.
37
 
(that allows to support daemons in the container).
38
 
In other words, in the
39
 
container, \fBlxc-init\fR has the pid 1 and the
40
 
first process of the application has the pid 2.
41
 
.PP
42
 
The above \fBlxc-init\fR is designed to forward received
43
 
signals to the started command.
44
 
So \fBlxc-kill\fR (1) sent signal is received
45
 
by the user specified command (pid 2 in the container).
46
 
.SH "OPTIONS"
47
 
.TP
48
 
\fB   -f, --rcfile \fIconfig_file\fB \fR
49
 
Specify the configuration file to configure the virtualization
50
 
and isolation functionalities for the container.
51
 
 
52
 
This configuration file if present will be used even if there is
53
 
already a configuration file present in the previously created
54
 
container (via lxc-create).
55
 
.TP
56
 
\fB   -s, --define \fIKEY=VAL\fB \fR
57
 
Assign value \fIVAL\fR to configuration
58
 
variable \fIKEY\fR\&. This overrides any
59
 
assignment done in \fIconfig_file\fR\&.
60
 
.SH "COMMON OPTIONS"
61
 
.PP
62
 
These options are common to most of lxc commands.
63
 
.TP
64
 
\fB-?, -h, --help\fR
65
 
Print a longer usage message than normal.
66
 
.TP
67
 
\fB--usage\fR
68
 
Give the usage message
69
 
.TP
70
 
\fB-q, --quiet\fR
71
 
mute on
72
 
.TP
73
 
\fB-o, --logfile=\fIFILE\fB\fR
74
 
Output to an alternate log
75
 
\fIFILE\fR\&. The default is no log.
76
 
.TP
77
 
\fB-l, --logpriority=\fILEVEL\fB\fR
78
 
Set log priority to
79
 
\fILEVEL\fR\&. The default log
80
 
priority is ERROR\&. Possible values are :
81
 
FATAL, CRIT,
82
 
WARN, ERROR,
83
 
NOTICE, INFO,
84
 
DEBUG\&.
85
 
 
86
 
Note that this option is setting the priority of the events
87
 
log in the alternate log file. It do not have effect on the
88
 
ERROR events log on stderr.
89
 
.TP
90
 
\fB-n, --name=\fINAME\fB\fR
91
 
Use container identifier \fINAME\fR\&.
92
 
The container identifier format is an alphanumeric string.
93
 
.SH "DIAGNOSTIC"
94
 
.TP
95
 
\fBThe container is busy\fR
96
 
The specified container is already running an
97
 
application. You should stop it before reuse this
98
 
container or create a new one.
99
 
.SH "SEE ALSO"
100
 
.PP
101
 
\fBlxc\fR(1),
102
 
\fBlxc-create\fR(1),
103
 
\fBlxc-destroy\fR(1),
104
 
\fBlxc-start\fR(1),
105
 
\fBlxc-stop\fR(1),
106
 
\fBlxc-execute\fR(1),
107
 
\fBlxc-kill\fR(1),
108
 
\fBlxc-console\fR(1),
109
 
\fBlxc-monitor\fR(1),
110
 
\fBlxc-wait\fR(1),
111
 
\fBlxc-cgroup\fR(1),
112
 
\fBlxc-ls\fR(1),
113
 
\fBlxc-ps\fR(1),
114
 
\fBlxc-info\fR(1),
115
 
\fBlxc-freeze\fR(1),
116
 
\fBlxc-unfreeze\fR(1),
117
 
\fBlxc.conf\fR(5)
118
 
.SH "AUTHOR"
119
 
.PP
120
 
Daniel Lezcano <daniel.lezcano@free.fr>