4 lxc: linux Container library
6 (C) Copyright IBM Corp. 2007, 2008
9 Daniel Lezcano <daniel.lezcano at free.fr>
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 2.1 of the License, or (at your option) any later version.
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27 <!DOCTYPE refentry PUBLIC @docdtd@ [
29 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
37 <refentrytitle>lxc-ls</refentrytitle>
38 <manvolnum>1</manvolnum>
42 <refname>lxc-ls</refname>
45 list the containers existing on the system
51 <command>lxc-ls</command>
52 <arg choice="opt">-1</arg>
53 <arg choice="opt">--active</arg>
54 <arg choice="opt">--frozen</arg>
55 <arg choice="opt">--running</arg>
56 <arg choice="opt">--stopped</arg>
57 <arg choice="opt">-f</arg>
58 <arg choice="opt">-F <replaceable>format</replaceable></arg>
59 <arg choice="opt">-g <replaceable>groups</replaceable></arg>
60 <arg choice="opt">--nesting</arg>
61 <arg choice="opt">filter</arg>
66 <title>Description</title>
68 <command>lxc-ls</command> list the containers existing on the
74 <title>Options</title>
78 <option><optional>-1</optional></option>
82 Show one entry per line. (default when /dev/stdout isn't a tty)
89 <option><optional>--active</optional></option>
93 List only active containers (same as --frozen --running).
100 <option><optional>--frozen</optional></option>
104 List only frozen containers.
111 <option><optional>--running</optional></option>
115 List only running containers.
122 <option><optional>--stopped</optional></option>
126 List only stopped containers.
133 <option><optional>-f, --fancy</optional></option>
137 Use a fancy, column-based output.
144 <option><optional>-F, --fancy-format <replaceable>format</replaceable></optional></option>
148 Comma separated list of column to show in the fancy output.
149 The list of accepted and default fields is listed in --help.
156 <option><optional>-g, --groups <replaceable>groups</replaceable></optional></option>
160 Comma separated list of groups the container must have to be displayed.
161 The parameter may be passed multiple times.
168 <option><optional>--nesting</optional></option>
172 Show nested containers.
179 <option><optional>filter</optional></option>
183 The filter passed to <command>lxc-ls</command> will be
184 applied to the container name. The format is a regular expression.
192 <title>Examples</title>
195 <term>lxc-ls --fancy</term>
198 list all the containers, listing one per line along with its
199 name, state, ipv4 and ipv6 addresses.
205 <term>lxc-ls --active -1</term>
208 list active containers and display the list in one column.
218 <title>Author</title>
219 <para>Stéphane Graber <email>stgraber@ubuntu.com</email></para>
223 <!-- Keep this comment at the end of the file
228 sgml-minimize-attributes:nil
229 sgml-always-quote-attributes:t
232 sgml-parent-document:nil
233 sgml-default-dtd-file:nil
234 sgml-exposed-tags:nil
235 sgml-local-catalogs:nil
236 sgml-local-ecat-files:nil