| 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-info</refentrytitle> |
| 15 |
<manvolnum>1</manvolnum> |
| 16 |
</refmeta> |
| 17 |
|
| 18 |
<refnamediv> |
| 19 |
<refname>lxc-info</refname> |
| 20 |
|
| 21 |
<refpurpose> |
| 22 |
<!-- |
| 23 |
query information about a container |
| 24 |
--> |
| 25 |
コンテナに関する情報の問い合わせ |
| 26 |
</refpurpose> |
| 27 |
</refnamediv> |
| 28 |
|
| 29 |
<refsynopsisdiv> |
| 30 |
<cmdsynopsis> |
| 31 |
<command>lxc-info</command> |
| 32 |
<arg choice="req">-n <replaceable>name</replaceable></arg> |
| 33 |
<arg choice="opt">-c <replaceable>KEY</replaceable></arg> |
| 34 |
<arg choice="opt">-s</arg> |
| 35 |
<arg choice="opt">-p</arg> |
| 36 |
<arg choice="opt">-i</arg> |
| 37 |
<arg choice="opt">-S</arg> |
| 38 |
<arg choice="opt">-H</arg> |
| 39 |
</cmdsynopsis> |
| 40 |
</refsynopsisdiv> |
| 41 |
|
| 42 |
<refsect1> |
| 43 |
<title><!-- Description -->説明</title> |
| 44 |
<para> |
| 45 |
<!-- |
| 46 |
<command>lxc-info</command> queries and shows information about a |
| 47 |
container. |
| 48 |
--> |
| 49 |
<command>lxc-info</command> は、コンテナに関する情報を問い合わせ、表示します。 |
| 50 |
</para> |
| 51 |
</refsect1> |
| 52 |
|
| 53 |
<refsect1> |
| 54 |
<title><!-- Options --></title> |
| 55 |
<variablelist> |
| 56 |
|
| 57 |
<varlistentry> |
| 58 |
<term> |
| 59 |
<option>-c, --config <replaceable>KEY</replaceable></option> |
| 60 |
</term> |
| 61 |
<listitem> |
| 62 |
<para> |
| 63 |
<!-- |
| 64 |
Print a configuration key from the container. This option |
| 65 |
may be given multiple times to print out multiple key = value pairs. |
| 66 |
--> |
| 67 |
コンテナの設定値を表示します。このオプションは複数の key = value のペアを表示したい場合には複数回指定することも可能です。 |
| 68 |
</para> |
| 69 |
</listitem> |
| 70 |
</varlistentry> |
| 71 |
|
| 72 |
<varlistentry> |
| 73 |
<term> |
| 74 |
<option>-s, --state</option> |
| 75 |
</term> |
| 76 |
<listitem> |
| 77 |
<para> |
| 78 |
<!-- |
| 79 |
Just print the container's state. |
| 80 |
--> |
| 81 |
コンテナの状態のみを表示します。 |
| 82 |
</para> |
| 83 |
</listitem> |
| 84 |
</varlistentry> |
| 85 |
|
| 86 |
<varlistentry> |
| 87 |
<term> |
| 88 |
<option>-p, --pid</option> |
| 89 |
</term> |
| 90 |
<listitem> |
| 91 |
<para> |
| 92 |
<!-- |
| 93 |
Just print the container's pid. |
| 94 |
--> |
| 95 |
コンテナの pid を表示します。 |
| 96 |
</para> |
| 97 |
</listitem> |
| 98 |
</varlistentry> |
| 99 |
|
| 100 |
<varlistentry> |
| 101 |
<term> |
| 102 |
<option>-i, --ips</option> |
| 103 |
</term> |
| 104 |
<listitem> |
| 105 |
<para> |
| 106 |
<!-- |
| 107 |
Just print the container's IP addresses. |
| 108 |
--> |
| 109 |
コンテナの IP アドレスを表示します。 |
| 110 |
</para> |
| 111 |
</listitem> |
| 112 |
</varlistentry> |
| 113 |
|
| 114 |
<varlistentry> |
| 115 |
<term> |
| 116 |
<option>-S, --stats</option> |
| 117 |
</term> |
| 118 |
<listitem> |
| 119 |
<para> |
| 120 |
<!-- |
| 121 |
Just print the container's statistics. |
| 122 |
Note that for performance reasons the kernel does not account |
| 123 |
kernel memory use unless a kernel memory limit is set. If a limit |
| 124 |
is not set, <command>lxc-info</command> will display kernel memory |
| 125 |
use as 0. A limit can be set by specifying |
| 126 |
<programlisting> |
| 127 |
lxc.cgroup.memory.kmem.limit_in_bytes = <replaceable>number</replaceable> |
| 128 |
</programlisting> |
| 129 |
in your container configuration file, see |
| 130 |
<citerefentry> |
| 131 |
<refentrytitle>lxc.conf</refentrytitle> |
| 132 |
<manvolnum>5</manvolnum> |
| 133 |
</citerefentry>. |
| 134 |
--> |
| 135 |
コンテナの統計情報を表示します。 |
| 136 |
パフォーマンスへの影響を考慮して、カーネルメモリの使用量は、カーネルメモリの制限値が設定されない限りはカウントされません。 |
| 137 |
もし、制限が設定されていない場合、<command>lxc-info</command> はカーネルメモリの使用量を 0 と表示します。制限は |
| 138 |
<programlisting> |
| 139 |
lxc.cgroup.memory.kmem.limit_in_bytes = <replaceable>number</replaceable> |
| 140 |
</programlisting> |
| 141 |
のように、コンテナの設定ファイルで指定することができます。詳しくは、 |
| 142 |
<citerefentry> |
| 143 |
<refentrytitle>lxc.conf</refentrytitle> |
| 144 |
<manvolnum>5</manvolnum> |
| 145 |
</citerefentry> |
| 146 |
を参照してください。 |
| 147 |
</para> |
| 148 |
</listitem> |
| 149 |
</varlistentry> |
| 150 |
|
| 151 |
<varlistentry> |
| 152 |
<term> |
| 153 |
<option>-H, --no-humanize</option> |
| 154 |
</term> |
| 155 |
<listitem> |
| 156 |
<para> |
| 157 |
<!-- |
| 158 |
Print the container's statistics in raw, non-humanized form. The |
| 159 |
default is to print statistics in humanized form. |
| 160 |
--> |
| 161 |
コンテナの統計情報を人間が読みやすい形に加工しないでそのまま表示します。 |
| 162 |
デフォルトは人間が読みやすい形の統計情報を表示します。 |
| 163 |
</para> |
| 164 |
</listitem> |
| 165 |
</varlistentry> |
| 166 |
</variablelist> |
| 167 |
</refsect1> |
| 168 |
|
| 169 |
&commonoptions; |
| 170 |
|
| 171 |
<refsect1> |
| 172 |
<title><!-- Examples -->例</title> |
| 173 |
<variablelist> |
| 174 |
<varlistentry> |
| 175 |
<term>lxc-info -n foo</term> |
| 176 |
<listitem> |
| 177 |
<para> |
| 178 |
<!-- |
| 179 |
Show information for foo. |
| 180 |
--> |
| 181 |
foo という名前のコンテナの情報を表示します。 |
| 182 |
</para> |
| 183 |
</listitem> |
| 184 |
</varlistentry> |
| 185 |
|
| 186 |
<varlistentry> |
| 187 |
<term>lxc-info -n 'ubuntu.*'</term> |
| 188 |
<listitem> |
| 189 |
<para> |
| 190 |
<!-- |
| 191 |
Show information for all containers whose name starts with ubuntu. |
| 192 |
--> |
| 193 |
ubuntu という文字列で始まる名前の全てのコンテナの情報を表示します。 |
| 194 |
</para> |
| 195 |
</listitem> |
| 196 |
</varlistentry> |
| 197 |
|
| 198 |
<varlistentry> |
| 199 |
<term>lxc-info -n foo -c lxc.net.0.veth.pair</term> |
| 200 |
<listitem> |
| 201 |
<para> |
| 202 |
<!-- |
| 203 |
prints the veth pair name of foo. |
| 204 |
--> |
| 205 |
コンテナ foo の veth pair を表示します。 |
| 206 |
</para> |
| 207 |
</listitem> |
| 208 |
</varlistentry> |
| 209 |
|
| 210 |
</variablelist> |
| 211 |
</refsect1> |
| 212 |
|
| 213 |
&seealso; |
| 214 |
</refentry> |
| 215 |
|
| 216 |
<!-- Keep this comment at the end of the file |
| 217 |
Local variables: |
| 218 |
mode: sgml |
| 219 |
sgml-omittag:t |
| 220 |
sgml-shorttag:t |
| 221 |
sgml-minimize-attributes:nil |
| 222 |
sgml-always-quote-attributes:t |
| 223 |
sgml-indent-step:2 |
| 224 |
sgml-indent-data:t |
| 225 |
sgml-parent-document:nil |
| 226 |
sgml-default-dtd-file:nil |
| 227 |
sgml-exposed-tags:nil |
| 228 |
sgml-local-catalogs:nil |
| 229 |
sgml-local-ecat-files:nil |
| 230 |
End: |
| 231 |
--> |