LinuxCommandLibrary

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 name
State: RUNNING, STOPPED, FROZEN
PID: Container init PID
IP: IP addresses
CPU use: CPU usage
Memory use: Memory usage

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community