1lxc-info(1)                                                        lxc-info(1)
2
3
4

NAME

6       lxc-info - query information about a container
7

SYNOPSIS

9       lxc-info {-n name} [-c KEY] [-s] [-p] [-i] [-S] [-H]
10

DESCRIPTION

12       lxc-info queries and shows information about a container.
13

OPTIONS

15       -c, --config KEY
16              Print a configuration key from the container. This option may be
17              given multiple times to print out multiple key = value pairs.
18
19       -s, --state
20              Just print the container's state.
21
22       -p, --pid
23              Just print the container's pid.
24
25       -i, --ips
26              Just print the container's IP addresses.
27
28       -S, --stats
29              Just print the container's statistics.  Note  that  for  perfor‐
30              mance  reasons the kernel does not account kernel memory use un‐
31              less a kernel memory limit is set. If a limit is not  set,  lxc-
32              info  will display kernel memory use as 0. A limit can be set by
33              specifying
34
35                          lxc.cgroup.memory.kmem.limit_in_bytes = number
36
37
38              in your container configuration file, see lxc.conf(5).
39
40       -H, --no-humanize
41              Print the container's statistics in raw, non-humanized form. The
42              default is to print statistics in humanized form.
43

COMMON OPTIONS

45       These options are common to most of lxc commands.
46
47       -?, -h, --help
48              Print a longer usage message than normal.
49
50       --usage
51              Give the usage message
52
53       -q, --quiet
54              mute on
55
56       -P, --lxcpath=PATH
57              Use an alternate container path. The default is /var/lib/lxc.
58
59       -o, --logfile=FILE
60              Output to an alternate log FILE. The default is no log.
61
62       -l, --logpriority=LEVEL
63              Set  log  priority  to LEVEL. The default log priority is ERROR.
64              Possible values are : FATAL, ALERT, CRIT, WARN,  ERROR,  NOTICE,
65              INFO, DEBUG, TRACE.
66
67              Note  that this option is setting the priority of the events log
68              in the alternate log file. It do not have effect  on  the  ERROR
69              events log on stderr.
70
71       -n, --name=NAME
72              Use  container identifier NAME.  The container identifier format
73              is an alphanumeric string.
74
75       --rcfile=FILE
76              Specify the configuration file to configure  the  virtualization
77              and isolation functionalities for the container.
78
79              This configuration file if present will be used even if there is
80              already a configuration file present in the  previously  created
81              container (via lxc-create).
82
83       --version
84              Show the version number.
85

EXAMPLES

87       lxc-info -n foo
88              Show information for foo.
89
90       lxc-info -n 'ubuntu.*'
91              Show information for all containers whose name starts with ubun‐
92              tu.
93
94       lxc-info -n foo -c lxc.net.0.veth.pair
95              prints the veth pair name of foo.
96

SEE ALSO

98       lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1),  lxc-
99       stop(1),  lxc-execute(1),  lxc-console(1), lxc-monitor(1), lxc-wait(1),
100       lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1),  lxc-unfreeze(1),
101       lxc-attach(1), lxc.conf(5)
102

AUTHOR

104       Stéphane Graber <stgraber@ubuntu.com>
105
106
107
108                                  2022-05-26                       lxc-info(1)
Impressum