podman-top(1)
π podman-top(1) β the girlies' guide to peeking inside your container π
okay bestie, so this is a page from the General Commands Manual, and it's literally just about spying on what your container is doing in there. no cap.
β¨ NAME β¨
podman-top β Display the running processes of a container
πΈ SYNOPSIS πΈ
podman top [options] container [format-descriptors]
podman container top [options] container [format-descriptors]
π¦ DESCRIPTION π¦
So basically, this shows you the running processes of the container. iconic, right? π
The format-descriptors are ps(1) compatible AIX format descriptors, but they've been extended so you can also print extra stuff, like the seccomp mode or the effective capabilities of a given process. lowkey powerful.
You can pass those descriptors either as separate arguments, or as one single comma-separated argument. your call, queen π
heads up: options and/or flags ofps(1) can also be specified! When you do that, Podman falls back to executingps(1) from the host, with the specified arguments and flags, inside the container namespace. If the container has theCAP_SYS_PTRACEcapability, then we executeps(1) in the container, so it must be installed there. π«£
To extract host-related information, use the "h*" descriptors. For instance, podman top $name hpid huser displays the PID and user of the processes in the host context. periodt.
π OPTIONS π
--help,-hβ Print usage statement β¨--latest,-lβ Instead of providing the container name or ID, use the last created container. π Note: the last started container can be from other users of Podman on the host machine. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
π FORMAT DESCRIPTORS π
The following descriptors are supported in addition to the AIX format descriptors mentioned in ps(1):
args, capbnd, capeff, capinh, capprm, comm, etime, group, groups, hgroup, hgroups, hpid, huser, label, nice, pcpu, pgid, pid, ppid, rgroup, ruser, seccomp, state, time, tty, user, vsz
capbnd
Set of bounding capabilities. See capabilities(7) for more information.
capeff
Set of effective capabilities. See capabilities(7) for more information.
capinh
Set of inheritable capabilities. See capabilities(7) for more information.
capprm
Set of permitted capabilities. See capabilities(7) for more information.
group
The effective group of the process.
groups
The supplementary groups of the process.
hgroup
The corresponding effective group of a container process on the host.
hgroups
The corresponding supplementary groups of a container process on the host.
hpid
The corresponding host PID of a container process.
huser
The corresponding effective user of a container process on the host.
label
Current security attributes of the process.
seccomp
Seccomp mode of the process (i.e., disabled, strict or filter). See seccomp(2) for more information.
state
Process state codes (e.g, R for running, S for sleeping). See proc(5) for more information.
stime
Process start time (e.g, "2019-12-09 10:50:36 +0100 CET).
π EXAMPLES π
By default, podman-top prints data similar to ps -ef. bestie behaviour fr fr.
$ podman top f5a62a71b07
USER PID PPID %CPU ELAPSED TTY TIME COMMAND
root 1 0 0.000 20.386825206s pts/0 0s sh
root 7 1 0.000 16.386882887s pts/0 0s sleep
root 8 1 0.000 11.386886562s pts/0 0s vi
The output can be controlled by specifying format descriptors as arguments after the container. π§
$ podman top -l pid seccomp args %C
PID SECCOMP COMMAND %CPU
1 filter sh 0.000
8 filter vi /etc/ 0.000
Podman falls back to executing ps(1) from the host in the container namespace if an unknown descriptor is specified. (not me finding out the hard way π)
$ podman top -l -- aux
USER PID PPID %CPU ELAPSED TTY TIME COMMAND
root 1 0 0.000 1h2m12.497061672s ? 0s sleep 100000
π SEE ALSO π
podman(1), ps(1), seccomp(2), proc(5), capabilities(7)
π HISTORY π
July 2018, Introduce format descriptors by Valentin Rothberg vrothberg@suse.com β¨mailto:vrothberg@suse.comβ©
December 2017, Originally compiled by Brent Baude bbaude@redhat.com β¨mailto:bbaude@redhat.comβ©
and that's the whole vibe, bestie π«Ά this page lives in thepodman-top(1)manual, and it's dated the way manpages always are β so go forth, runpodman top, and slay πβ¨
π¦ where this page comes from
- alpine 3.24: podman-doc 5.8.9-r0 Β· Apache-2.0
- arch rolling: podman 6.1.4-1 Β· Apache-2.0
- centos-stream 10: podman 7:6.1.0-2.el10 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- centos-stream 9: podman 6:5.8.5-2.el9 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 43: podman 5:5.8.4-1.fc43
- fedora 43: podman 5:5.8.8-1.fc43
- fedora 43: podman 5:5.8.9-1.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman 5:5.8.1-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- fedora 44: podman 5:5.8.7-1.fc44
- fedora 44: podman 5:5.8.9-1.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0
- nixos 26.05: podman 5.8.9
- nixpkgs unstable: podman 6.1.4
- ubuntu resolute: podman 5.7.0+ds2-3build1 Β· Apache-2.0
- ubuntu stonking: podman 5.8.6+ds1-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms