lxc-info
displays information about a Linux container including its state, PID, IP
TLDR
Get container info
$ sudo lxc-info [container_name]
Display help$ lxc-info --help
SYNOPSIS
lxc-info -n name [options]
DESCRIPTION
lxc-info displays information about a Linux container including its state, PID, IP addresses, CPU and memory usage.
PARAMETERS
-n, --name NAME
Container name-s, --state
Show state only-p, --pid
Show PID only-i, --ips
Show IP addresses only-c, --config KEY
Show specific config value-S, --stats
Show usage statistics-?, --help
Display help information
OUTPUT
Name: Container nameState: RUNNING, STOPPED, FROZENPID: Container init PIDIP: IP addressesCPU use: CPU usageMemory use: Memory usage
SEE ALSO
lxc-ls(1), lxc-start(1), lxc-attach(1)
