LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lxc-info

displays information about a Linux container including its state, PID, IP

TLDR

Get container info
$ sudo lxc-info [container_name]
copy
Display help
$ lxc-info --help
copy

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

Copied to clipboard
Kai