]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-device.sgml.in
lxc-alpine: run bootmisc and syslog at boot runlevel
[mirror_lxc.git] / doc / lxc-device.sgml.in
CommitLineData
4019712d
SG
1
2<!--
3
4(C) Copyright Canonical Ltd. 2013
5
6Authors:
7Stéphane Graber <stgraber@ubuntu.com>
8
9This library is free software; you can redistribute it and/or
10modify it under the terms of the GNU Lesser General Public
11License as published by the Free Software Foundation; either
12version 2.1 of the License, or (at your option) any later version.
13
14This library is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17Lesser General Public License for more details.
18
19You should have received a copy of the GNU Lesser General Public
20License along with this library; if not, write to the Free Software
250b1eec 21Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
4019712d
SG
22
23-->
24
7f951458 25<!DOCTYPE refentry PUBLIC @docdtd@ [
4019712d
SG
26
27<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
28]>
29
30<refentry>
31
32 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
33
34 <refmeta>
35 <refentrytitle>lxc-device</refentrytitle>
36 <manvolnum>1</manvolnum>
37 </refmeta>
38
39 <refnamediv>
40 <refname>lxc-device</refname>
41
42 <refpurpose>
dd97408a 43 manage devices of running containers
4019712d
SG
44 </refpurpose>
45 </refnamediv>
46
47 <refsynopsisdiv>
48 <cmdsynopsis>
49 <command>lxc-device</command>
50 <arg choice="opt">-h</arg>
51 <arg choice="opt">-n <replaceable>name</replaceable></arg>
52 <arg choice="opt">add</arg>
53 <arg choice="opt">DEVICE</arg>
54 <arg choice="opt">NAME</arg>
55 </cmdsynopsis>
56 </refsynopsisdiv>
57
58 <refsect1>
59 <title>Description</title>
60 <para>
61 <command>lxc-device</command> manages devices in running container.
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>Options</title>
67 <variablelist>
68 <varlistentry>
69 <term>
70 <option><optional>-h</optional></option>
71 </term>
72 <listitem>
73 <para>
74 The full command help message.
75 </para>
76 </listitem>
77 </varlistentry>
78
79 <varlistentry>
80 <term>
81 <option>-n</option>
82 </term>
83 <listitem>
84 <para>
85 The name of the target container.
86 </para>
87 </listitem>
88 </varlistentry>
89
90 <varlistentry>
91 <term>
92 <option>action</option>
93 </term>
94 <listitem>
95 <para>
96 What action to perform. Only 'add' is supported at this point.
97 </para>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry>
102 <term>
103 <option>DEVICE</option>
104 </term>
105 <listitem>
106 <para>
107 The device to add to the container.
108 It can either be the path to a device under /dev or a network
109 interface name.
110 </para>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry>
115 <term>
116 <option><optional>NAME</optional></option>
117 </term>
118 <listitem>
119 <para>
120 Name for the device within the container.
121 </para>
122 </listitem>
123 </varlistentry>
124 </variablelist>
125 </refsect1>
126
127 <refsect1>
128 <title>Examples</title>
129 <variablelist>
130 <varlistentry>
131 <term>lxc-device -n p1 add /dev/video0</term>
132 <listitem>
133 <para>
134 Creates a /dev/video0 device in container p1 based on the matching
135 device on the host.
136 </para>
137 </listitem>
138 </varlistentry>
139
140 <varlistentry>
141 <term>lxc-device -n p1 add eth0 eth1</term>
142 <listitem>
143 <para>
144 Moves eth0 from the host as eth1 in p1.
145 </para>
146 </listitem>
147 </varlistentry>
148 </variablelist>
149 </refsect1>
150
151 &seealso;
152
153 <refsect1>
154 <title>Author</title>
155 <para>Stéphane Graber <email>stgraber@ubuntu.com</email></para>
156 </refsect1>
157</refentry>
158
159<!-- Keep this comment at the end of the file
160Local variables:
161mode: sgml
162sgml-omittag:t
163sgml-shorttag:t
164sgml-minimize-attributes:nil
165sgml-always-quote-attributes:t
166sgml-indent-step:2
167sgml-indent-data:t
168sgml-parent-document:nil
169sgml-default-dtd-file:nil
170sgml-exposed-tags:nil
171sgml-local-catalogs:nil
172sgml-local-ecat-files:nil
173End:
174-->