]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-create.sgml.in
remove misleading copy&paste comment
[mirror_lxc.git] / doc / lxc-create.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-create</refentrytitle>
38 <manvolnum>1</manvolnum>
39 </refmeta>
40
41 <refnamediv>
42 <refname>lxc-create</refname>
43
44 <refpurpose>
45 creates a container
46 </refpurpose>
47 </refnamediv>
48
49 <refsynopsisdiv>
50 <cmdsynopsis>
51 <command>lxc-create <replaceable>-n name</replaceable>
f079d569 52 <optional>-f config_file</optional>
0bb4f8cf 53 <optional>-t template</optional></command>
d823d5b9 54 </cmdsynopsis>
55 </refsynopsisdiv>
56
57 <refsect1>
58 <title>Description</title>
59
60 <para>
61 <command>lxc-create</command> creates a system object where is
6a22713f
DL
62 stored the configuration informations and where can be stored
63 user information. The identifier <replaceable>name</replaceable>
64 is used to specify the container to be used with the different
65 lxc commands.
d823d5b9 66 </para>
becc0400
MN
67 <para>
68 The object is a directory created in @LXCPATH@ and identified by its name.
69 </para>
d823d5b9 70
71 <para>
becc0400 72 The object is the definition of the different resources an
d823d5b9 73 application can use or can see. The more the configuration file
74 contains informations, the more the container is isolated and
75 the more the application is jailed.
76 </para>
77
78 <para>
79 If the configuration file <replaceable>config_file</replaceable>
80 is not specified, the container will be created with the default
81 isolation: processes, sysv ipc and mount points.
82 </para>
83 </refsect1>
84
85 <refsect1>
86 <title>Options</title>
87 <variablelist>
88
d823d5b9 89 <varlistentry>
90 <term>
91 <option>-f <replaceable>config_file</replaceable></option>
92 </term>
93 <listitem>
94 <para>
95 Specify the configuration file to configure the virtualization
96 and isolation functionalities for the container.
97 </para>
98 </listitem>
99 </varlistentry>
0bb4f8cf
MN
100
101 <varlistentry>
102 <term>
103 <option>-t <replaceable>template</replaceable></option>
104 </term>
105 <listitem>
106 <para>
107 'template' is the short name of an existing 'lxc-template'
108 script that is called by lxc-create.
becc0400
MN
109 eg: lxc-busybox, lxc-debian, lxc-fedora, lxc-sshd.
110 Refer to those exemples in @BINDIR@
111 for details of expecting script structure.
0bb4f8cf
MN
112 </para>
113 </listitem>
114 </varlistentry>
d823d5b9 115
116 </variablelist>
117
118 </refsect1>
119
120 <refsect1>
121 <title>Diagnostic</title>
122
123 <variablelist>
124
125 <varlistentry>
126 <term>The container already exists</term>
127 <listitem>
128 <para>
129 As the message mention it, you try to create a container
130 but there is a container with the same name. You can use
131 the <command>lxc-ls -l</command> command to list the
132 available containers on the system.
133 </para>
134 </listitem>
135 </varlistentry>
136
137 </variablelist>
138
139 </refsect1>
140
99e4008c 141 &seealso;
d823d5b9 142
143 <refsect1>
144 <title>Author</title>
145 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
146 </refsect1>
147
148</refentry>
149
150<!-- Keep this comment at the end of the file
151Local variables:
152mode: sgml
153sgml-omittag:t
154sgml-shorttag:t
155sgml-minimize-attributes:nil
156sgml-always-quote-attributes:t
157sgml-indent-step:2
158sgml-indent-data:t
159sgml-parent-document:nil
160sgml-default-dtd-file:nil
161sgml-exposed-tags:nil
162sgml-local-catalogs:nil
163sgml-local-ecat-files:nil
164End:
165-->