Why Podman API gives an empty result while listing the processes running in a container ?
Issue
*Why Podman API gives an empty result while listing the processes running in a container ?
test# curl --unix-socket /run/podman/podman.sock http://localhost/containers/d3f7844bb824c8ee931ca23a076305e10190aa382c77a7cfabaaa38126e286d5/top
test#
While podman top
test# podman top d3f7844bb824c8ee931ca23a076305e10190aa382c77a7cfabaaa38126e286d5
USER PID PPID %CPU ELAPSED TTY TIME COMMAND
root 1 0 0.233 598h41m5.00176508s ? 1h23m41s /usr/lib/systemd/systemd --switched-root --system --deserialize 17
root 2 0 0.001 598h41m5.00206723s ? 18s [kthreadd]
root 3 2 0.000 598h41m5.002189878s ? 0s [rcu_gp]
root 4 2 0.000 598h41m5.002257708s ? 0s [rcu_par_gp]
Environment
- Red Hat Enterprise Linux 8
- podman 4.X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.