| 1 |
<!-- SPDX-License-Identifier: LGPL-2.1+ --> |
| 2 |
|
| 3 |
<!DOCTYPE refentry PUBLIC @docdtd@ [ |
| 4 |
|
| 5 |
<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml"> |
| 6 |
<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml"> |
| 7 |
]> |
| 8 |
|
| 9 |
<refentry> |
| 10 |
|
| 11 |
<docinfo><date>@LXC_GENERATE_DATE@</date></docinfo> |
| 12 |
|
| 13 |
<refmeta> |
| 14 |
<refentrytitle>lxc-ls</refentrytitle> |
| 15 |
<manvolnum>1</manvolnum> |
| 16 |
</refmeta> |
| 17 |
|
| 18 |
<refnamediv> |
| 19 |
<refname>lxc-ls</refname> |
| 20 |
|
| 21 |
<refpurpose> |
| 22 |
<!-- |
| 23 |
list the containers existing on the system |
| 24 |
--> |
| 25 |
システム上に存在するコンテナのリスト表示 |
| 26 |
</refpurpose> |
| 27 |
</refnamediv> |
| 28 |
|
| 29 |
<refsynopsisdiv> |
| 30 |
<cmdsynopsis> |
| 31 |
<command>lxc-ls</command> |
| 32 |
<arg choice="opt">-1</arg> |
| 33 |
<arg choice="opt">--active</arg> |
| 34 |
<arg choice="opt">--frozen</arg> |
| 35 |
<arg choice="opt">--running</arg> |
| 36 |
<arg choice="opt">--stopped</arg> |
| 37 |
<arg choice="opt">--defined</arg> |
| 38 |
<arg choice="opt">-f</arg> |
| 39 |
<arg choice="opt">-F <replaceable>format</replaceable></arg> |
| 40 |
<arg choice="opt">-g <replaceable>groups</replaceable></arg> |
| 41 |
<arg choice="opt">--nesting=<replaceable>NUM</replaceable></arg> |
| 42 |
<arg choice="opt">--filter=<replaceable>regex</replaceable></arg> |
| 43 |
</cmdsynopsis> |
| 44 |
</refsynopsisdiv> |
| 45 |
|
| 46 |
<refsect1> |
| 47 |
<title><!-- Description -->説明</title> |
| 48 |
<para> |
| 49 |
<!-- |
| 50 |
<command>lxc-ls</command> list the containers existing on the |
| 51 |
system. |
| 52 |
--> |
| 53 |
<command>lxc-ls</command> はシステム上に存在するコンテナをリスト表示します。 |
| 54 |
</para> |
| 55 |
</refsect1> |
| 56 |
|
| 57 |
<refsect1> |
| 58 |
<title><!-- Options -->オプション</title> |
| 59 |
<variablelist> |
| 60 |
<varlistentry> |
| 61 |
<term> |
| 62 |
<option>-1</option> |
| 63 |
</term> |
| 64 |
<listitem> |
| 65 |
<para> |
| 66 |
<!-- |
| 67 |
Show one entry per line. (default when /dev/stdout isn't a tty) |
| 68 |
--> |
| 69 |
1 行に 1 エントリ表示します。(/dev/stdout が tty でない場合のデフォルト) |
| 70 |
</para> |
| 71 |
</listitem> |
| 72 |
</varlistentry> |
| 73 |
|
| 74 |
<varlistentry> |
| 75 |
<term> |
| 76 |
<option>--active</option> |
| 77 |
</term> |
| 78 |
<listitem> |
| 79 |
<para> |
| 80 |
<!-- |
| 81 |
List only active containers (same as --frozen --running). |
| 82 |
--> |
| 83 |
アクティブなコンテナのみリスト表示します。(--frozen --running と同じです) |
| 84 |
</para> |
| 85 |
</listitem> |
| 86 |
</varlistentry> |
| 87 |
|
| 88 |
<varlistentry> |
| 89 |
<term> |
| 90 |
<option>--frozen</option> |
| 91 |
</term> |
| 92 |
<listitem> |
| 93 |
<para> |
| 94 |
<!-- |
| 95 |
List only frozen containers. |
| 96 |
--> |
| 97 |
凍結 (frozen) 状態のコンテナのみをリスト表示します。 |
| 98 |
</para> |
| 99 |
</listitem> |
| 100 |
</varlistentry> |
| 101 |
|
| 102 |
<varlistentry> |
| 103 |
<term> |
| 104 |
<option>--running</option> |
| 105 |
</term> |
| 106 |
<listitem> |
| 107 |
<para> |
| 108 |
<!-- |
| 109 |
List only running containers. |
| 110 |
--> |
| 111 |
実行 (running) 状態のコンテナのみをリスト表示します。 |
| 112 |
</para> |
| 113 |
</listitem> |
| 114 |
</varlistentry> |
| 115 |
|
| 116 |
<varlistentry> |
| 117 |
<term> |
| 118 |
<option>--stopped</option> |
| 119 |
</term> |
| 120 |
<listitem> |
| 121 |
<para> |
| 122 |
<!-- |
| 123 |
List only stopped containers. |
| 124 |
--> |
| 125 |
停止状態のコンテナのみをリスト表示します。 |
| 126 |
</para> |
| 127 |
</listitem> |
| 128 |
</varlistentry> |
| 129 |
|
| 130 |
<varlistentry> |
| 131 |
<term> |
| 132 |
<option>--defined</option> |
| 133 |
</term> |
| 134 |
<listitem> |
| 135 |
<para> |
| 136 |
<!-- |
| 137 |
List only defined containers. |
| 138 |
--> |
| 139 |
定義済みのコンテナ (設定ファイルが存在するコンテナ) のみを表示します。 |
| 140 |
</para> |
| 141 |
</listitem> |
| 142 |
</varlistentry> |
| 143 |
|
| 144 |
<varlistentry> |
| 145 |
<term> |
| 146 |
<option>-f,--fancy</option> |
| 147 |
</term> |
| 148 |
<listitem> |
| 149 |
<para> |
| 150 |
<!-- |
| 151 |
Use a fancy, column-based output. |
| 152 |
--> |
| 153 |
装飾付きのカラムベースの出力を使用します。 |
| 154 |
</para> |
| 155 |
</listitem> |
| 156 |
</varlistentry> |
| 157 |
|
| 158 |
<varlistentry> |
| 159 |
<term> |
| 160 |
<option>-F,--fancy-format <replaceable>format</replaceable></option> |
| 161 |
</term> |
| 162 |
<listitem> |
| 163 |
<para> |
| 164 |
<!-- |
| 165 |
Comma separated list of columns to show in the fancy output. |
| 166 |
The list of accepted and default fields is listed in \-\-help. |
| 167 |
--> |
| 168 |
装飾付き出力で表示するカラムのコンマ区切りのリスト。デフォルトで表示される項目と指定可能な項目名は --help オプションで確認してください。 |
| 169 |
</para> |
| 170 |
</listitem> |
| 171 |
</varlistentry> |
| 172 |
|
| 173 |
<varlistentry> |
| 174 |
<term> |
| 175 |
<option>-g,--groups <replaceable>groups</replaceable></option> |
| 176 |
</term> |
| 177 |
<listitem> |
| 178 |
<para> |
| 179 |
<!-- |
| 180 |
Comma separated list of groups the container must have to be displayed. |
| 181 |
The parameter may be passed multiple times. |
| 182 |
--> |
| 183 |
表示させるコンテナグループのコンマ区切りのリスト。このオプションは複数回指定することもできます。 |
| 184 |
</para> |
| 185 |
</listitem> |
| 186 |
</varlistentry> |
| 187 |
|
| 188 |
<varlistentry> |
| 189 |
<term> |
| 190 |
<option>--nesting=<replaceable>NUM</replaceable></option> |
| 191 |
</term> |
| 192 |
<listitem> |
| 193 |
<para> |
| 194 |
<!-- |
| 195 |
Show nested containers. The number of nesting levels to be shown can |
| 196 |
be specified by passing a number as argument. |
| 197 |
--> |
| 198 |
ネストしたコンテナを表示します。引数として数字を指定することで、表示するネストのレベルを指定できます。 |
| 199 |
</para> |
| 200 |
</listitem> |
| 201 |
</varlistentry> |
| 202 |
|
| 203 |
<varlistentry> |
| 204 |
<term> |
| 205 |
<option>--filter=<replaceable>regex</replaceable></option> |
| 206 |
</term> |
| 207 |
<listitem> |
| 208 |
<para> |
| 209 |
<!-- |
| 210 |
The regular expression passed to <command>lxc-ls</command> will be |
| 211 |
applied to the container name. The format is a POSIX extended |
| 212 |
regular expression. It can also be given as additional argument |
| 213 |
without explicitly using <option>--filter</option>. |
| 214 |
--> |
| 215 |
<command>lxc-ls</command> に与える、コンテナ名に対して適用する正規表現です。フォーマットは POSIX 拡張正規表現です。<option>--filter</option> を明示的に使わずに、追加の引数として与えることもできます。 |
| 216 |
</para> |
| 217 |
</listitem> |
| 218 |
</varlistentry> |
| 219 |
</variablelist> |
| 220 |
|
| 221 |
</refsect1> |
| 222 |
|
| 223 |
<refsect1> |
| 224 |
<title><!-- Examples -->例</title> |
| 225 |
<variablelist> |
| 226 |
<varlistentry> |
| 227 |
<term>lxc-ls --fancy</term> |
| 228 |
<listitem> |
| 229 |
<para> |
| 230 |
<!-- |
| 231 |
list all the containers, listing one per line along with its |
| 232 |
name, state, ipv4 and ipv6 addresses. |
| 233 |
--> |
| 234 |
全てのコンテナをリスト表示します。 |
| 235 |
一行にはコンテナの名前、状態、IPv4 アドレス、IPv6 アドレスが表示されます。 |
| 236 |
</para> |
| 237 |
</listitem> |
| 238 |
</varlistentry> |
| 239 |
|
| 240 |
<varlistentry> |
| 241 |
<term>lxc-ls --active -1</term> |
| 242 |
<listitem> |
| 243 |
<para> |
| 244 |
<!-- |
| 245 |
list active containers and display the list in one column. |
| 246 |
--> |
| 247 |
稼働中のコンテナを一列にリスト表示します。 |
| 248 |
</para> |
| 249 |
</listitem> |
| 250 |
</varlistentry> |
| 251 |
|
| 252 |
</variablelist> |
| 253 |
</refsect1> |
| 254 |
|
| 255 |
&commonoptions; |
| 256 |
|
| 257 |
&seealso; |
| 258 |
|
| 259 |
<refsect1> |
| 260 |
<title><!-- History -->履歴</title> |
| 261 |
<!-- |
| 262 |
Written originally as a shell script by Daniel Lezcano and Serge Hallyn. |
| 263 |
Later reimplemented and extended in Python by Stéphane Graber and then |
| 264 |
reimplemented and extended in C by Christian Brauner. |
| 265 |
--> |
| 266 |
元は Daniel Lezcano と Serge Hallyn によりシェルスクリプトとして書かれていました。のちに、Stéphane Graber が Python で再実装し、拡張しました。その後、Christian Brauner が C で再実装し、拡張しました。 |
| 267 |
</refsect1> |
| 268 |
|
| 269 |
</refentry> |
| 270 |
|
| 271 |
<!-- Keep this comment at the end of the file |
| 272 |
Local variables: |
| 273 |
mode: sgml |
| 274 |
sgml-omittag:t |
| 275 |
sgml-shorttag:t |
| 276 |
sgml-minimize-attributes:nil |
| 277 |
sgml-always-quote-attributes:t |
| 278 |
sgml-indent-step:2 |
| 279 |
sgml-indent-data:t |
| 280 |
sgml-parent-document:nil |
| 281 |
sgml-default-dtd-file:nil |
| 282 |
sgml-exposed-tags:nil |
| 283 |
sgml-local-catalogs:nil |
| 284 |
sgml-local-ecat-files:nil |
| 285 |
End: |
| 286 |
--> |