mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
e44aa440d9
Signed-off-by: Patrick Stoeckle <patrick.stoeckle@siemens.com>
27 lines
859 B
Markdown
27 lines
859 B
Markdown
% runc-ps "8"
|
|
|
|
# NAME
|
|
**runc-ps** - display the processes inside a container
|
|
|
|
# SYNOPSIS
|
|
**runc ps** [_option_ ...] _container-id_ [_ps-option_ ...]
|
|
|
|
# DESCRIPTION
|
|
The command **ps** is a wrapper around the stock **ps**(1) utility,
|
|
which filters its output to only contain processes belonging to a specified
|
|
_container-id_. Therefore, the PIDs shown are the host PIDs.
|
|
|
|
Any **ps**(1) options can be used, but some might break the filtering.
|
|
In particular, if PID column is not available, an error is returned,
|
|
and if there are columns with values containing spaces before the PID
|
|
column, the result is undefined.
|
|
|
|
# OPTIONS
|
|
**--format**|**-f** **table**|**json**
|
|
: Output format. Default is **table**. The **json** format shows a mere array
|
|
of PIDs belonging to a container; if used, all **ps** options are ignored.
|
|
|
|
# SEE ALSO
|
|
**runc-list**(8),
|
|
**runc**(8).
|