mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
f5a95fa244
Currently, ps command can not support argument: (But following usage is in manual) | # ./runc ps 123 -ef | Incorrect Usage. | | NAME: | runc ps - ps displays the processes running inside a container | | USAGE: | runc ps [command options] <container-id> [ps options] | | OPTIONS: | --format value, -f value select one of: table or json | | flag provided but not defined: -ef | # Instead of using odd command like: | # ./runc ps -- 123 -ef We can make it seems little better: | # ./runc ps 123 -- -ef | UID PID PPID C STIME TTY TIME CMD | root 29046 29038 0 11:18 pts/2 00:00:00 sh | # This patch also fixed manual which can not working in current code. Closes #788 Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
351 B
351 B
NAME
runc ps - ps displays the processes running inside a container
SYNOPSIS
runc ps [command options] [-- ps options]
OPTIONS
--format value, -f value select one of: table(default) or json
The default format is table. The following will output the processes of a container in json format:
# runc ps -f json