lxc-ps(1)

lxc-ps1

List the processes belonging to a specific container.

Usage

lxc-ps [--name name] [--lxc] [ps option]

Overview

lxc-ps is a wrapper tp ps command to report the name of lxc container associated to reported processes.

The cgroup fs must be mounted before container creation, to be able to have lxc-ps to find the container associated to processes.

The additionnal specified ps options must not remove the default ps header and the pid information, to be able to have the lxc-ps to find the container associated to processes.

Options

--name NAME

specify the container NAME to limit the output to the processes belonging to this container name.

--lxc

limit the output to the processes belonging to all lxc containers.

[ps options]

The ps options must be separated from lxc-ps options by the -- parameter.

Examples

lxc-ps --name foo -- --forest

list all the processes belonging to container 'foo' and show dependencies.

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

Author

Daniel Lezcano <[email protected]>

From lxc 0.8.0~rc1-8+deb7u2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.