lxc-info(1)
π lxc-info(1) β the manual page, but make it group chat
ok so bestie, welcome to lxc-info, your new fave little detective for containers β¨ The manual name is literally right there in the title (lxc-info(1)) β cute, we love a self-referential queen π
πΈ NAME πΈ
lxc-info β query information about a container π
β¨ SYNOPSIS β¨
lxc-info {-n name} [-c KEY] [-s] [-p] [-i] [-S] [-H]
π¦ DESCRIPTION π¦
Okay so here's the vibe: lxc-info queries and shows information about a container. That's it, that's the whole job, and honestly? She ate. π
π OPTIONS π
-c,--configKEY β prints a configuration key from the container. Lowkey obsessed with this one: you can give this option multiple times to print out multiplekey = valuepairs, so go off, stack them π«Ά-s,--stateβ just print the container's state. nothing else, just the state, keep it brief bestie π€«-p,--pidβ just print the container's pid. the main character's process ID, iconic π₯-i,--ipsβ just print the container's IP addresses. all of them, address reveal era π-S,--statsβ just print the container's statistics. BUT β heads up, bestie, this is the fine-print moment π¨ for performance reasons the kernel does not account kernel memory use unless a kernel memory limit is set. If a limit is not set,lxc-infowill display kernel memory use as0. So if you're squinting at a big fat zero, that's why, no cap. A limit can be set by specifying
lxc.cgroup.memory.kmem.limit_in_bytes = number
in your container configuration file, see lxc.conf(5). slay π
-H,--no-humanizeβ print the container's statistics in raw, non-humanized form. the default is to print statistics in humanized form. so like,-His the "give me the actual numbers, no vibes" flag π
π COMMON OPTIONS π
these options are common to most of lxc commands, iykyk π«
-?,-h,--helpβ print a longer usage message than normal. the deluxe edition π--usageβ give the usage message. short and sweet β¨-q,--quietβ mute on π-P,--lxcpath=PATH β use an alternate container path. the default is/var/lib/lxc. path relocation, we love to see it π-o,--logfile=FILE β output to an alternate log FILE. the default is no log π«₯-l,--logpriority=LEVEL β set log priority to LEVEL. the default log priority isERROR. Possible values are:FATAL,ALERT,CRIT,WARN,ERROR,NOTICE,INFO,DEBUG,TRACE.
ngl, read this part twice bestie π β this option is setting the priority of the events log in the alternate log file. It do not have effect on theERRORevents log onstderr. so don't come for me when stderr is still yelling π
-n,--name=NAME β use container identifier NAME. the container identifier format is an alphanumeric string π€--rcfile=FILE β specify the configuration file to configure the virtualization and isolation functionalities for the container.
important: this configuration file, if present, will be used even if there is already a configuration file present in the previously created container (via lxc-create). she overrides, periodt π
--versionβ show the version number. say hi to the version ποΈ
π EXAMPLES π
lxc-info -n fooShow information forfoo. the classic, the starter pack πlxc-info -n 'ubuntu.*'Show information for all containers whose name starts withubuntu. yes the wildcard, yes it's giving main character energy πlxc-info -n foo -c lxc.net.0.veth.pairprints the veth pair name offoo. look at her, getting all specific π
π SEE ALSO π
lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1), lxc-stop(1), lxc-execute(1), lxc-console(1), lxc-monitor(1), lxc-wait(1), lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1), lxc-unfreeze(1), lxc-attach(1), lxc.conf(5)
okay that's the whole page bestie, go forth and query some containers πβ¨ππ¦
this little masterpiece is from the lxc-info(1) fam, dated 2026-05-01 β take care of her, she's iconic ππ
π¦ where this page comes from
- alpine 3.24: lxc-doc 7.0.0-r0 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms