Debian Codegraph @

share/man/container-list.1.rst

raw
1 .. Open Infrastructure: compute-tools
2
3 .. Copyright (C) 2014-2026 Daniel Baumann <[email protected]>
4 ..
5 .. SPDX-License-Identifier: GPL-3.0+
6 ..
7 .. This program is free software: you can redistribute it and/or modify
8 .. it under the terms of the GNU General Public License as published by
9 .. the Free Software Foundation, either version 3 of the License, or
10 .. (at your option) any later version.
11 ..
12 .. This program is distributed in the hope that it will be useful,
13 .. but WITHOUT ANY WARRANTY; without even the implied warranty of
14 .. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 .. GNU General Public License for more details.
16 ..
17 .. You should have received a copy of the GNU General Public License
18 .. along with this program. If not, see <https://www.gnu.org/licenses/>.
19
20 ==============
21 container-list
22 ==============
23
24 ----------------------------
25 List container on the system
26 ----------------------------
27
28 :manual section: 1
29 :manual group: Open Infrastructure
30
31 Synopsis
32 ========
33
34 | **container list** ['OPTIONS']
35 | **cnt ls** ['OPTIONS']
36
37 Description
38 ===========
39
40 The **container list** command lists container on the system.
41
42 Options
43 =======
44
45 The following **container list** options are available, defaults to '--started
46 --stopped':
47
48 -a, --all:
49 List all available container (started, stopped, and other).
50
51 --csv-separator='SEPARATOR':
52 Specify custom CSV separator, defaults to ','.
53
54 -f, --format='FORMAT':
55 Use format to list container. Currently available formats are 'cli' (default),
56 'csv', 'json', 'shell', 'sh', 'yaml', or 'xml'.
57
58 -h, --host='HOSTNAME':
59 List only container that are enabled for automatic start on the specified
60 hostname. Defaults to list containers of the local system only. Using 'all'
61 shows all container regardless of any automatic start configuration.
62
63 -o, --other:
64 List only container that are not enable for automatic start on the current
65 system.
66
67 -s, --started:
68 List only started container.
69
70 -t, --stopped:
71 List only stopped container.
72
73 Examples
74 ========
75
76 List all started and stopped containers of the local system:
77
78 sudo container list
79
80 List all started and other containers:
81
82 sudo container list -s -o
83
84 Create a CSV export of all started and stopped containers:
85
86 sudo container list -f csv
87
88 Create a JSON export of all started and stopped containers:
89
90 sudo container list -f json
91
92 Create a shell export of all started and stopped containers:
93
94 sudo container list -f shell
95
96 sudo container list -f sh
97
98 Create a YAML export of all started and stopped containers:
99
100 sudo container list -f yaml
101
102 Create a XML export of all started and stopped containers:
103
104 sudo container list -f xml
105
106 See also
107 ========
108
109 | compute-tools(7),
110 | container(1).
111
112 Homepage
113 ========
114
115 More information about compute-tools and the Open Infrastructure project can be
116 found on the homepage (https://open-infrastructure.net).
117
118 Contact
119 =======
120
121 Bug reports, feature requests, help, patches, support and everything else are
122 welcome on the Open Infrastructure Software Mailing List
123 <[email protected]>.
124
125 Debian specific bugs can also be reported in the Debian Bug Tracking System
126 (https://bugs.debian.org).
127
128 Authors
129 =======
130
131 compute-tools were written by Daniel Baumann
132 <[email protected]> and others.