mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
podman-top: use containers/psgo
Use github.com/containers/psgo instead of execing `ps (1)`. The psgo library enables a much more flexible interface with respect to which data to be printed (e.g., capabilities, seccomp mode, PID, PCPU, etc.) while the output can be parsed reliably. The library does not use ps (1) but parses /proc and /dev instead. To list the processes of a given container, psgo will join the mount namespace of the given container and extract all data from there. Notice that this commit breaks compatibility with docker-top. Signed-off-by: Valentin Rothberg <vrothberg@suse.com> Closes: #1113 Approved by: rhatdan
This commit is contained in:
committed by
Atomic Bot
parent
98703eb204
commit
ba1871dac0
@ -12,6 +12,7 @@ github.com/containernetworking/cni v0.7.0-alpha1
|
||||
github.com/containernetworking/plugins 1fb94a4222eafc6f948eacdca9c9f2158b427e53
|
||||
github.com/containers/image c6e0eee0f8eb38e78ae2e44a9aeea0576f451617
|
||||
github.com/containers/storage 8b1a0f8d6863cf05709af333b8997a437652ec4c
|
||||
github.com/containers/psgo 59a9dad536216e91da1861c9fbba75b85da84dcd
|
||||
github.com/coreos/go-systemd v14
|
||||
github.com/cri-o/ocicni master
|
||||
github.com/cyphar/filepath-securejoin v0.2.1
|
||||
|
||||
Reference in New Issue
Block a user