Skip to content

docker ps -v for verbose info: PID and namespace #32501

Description

This is a feature request for listing init PID and namespace info easily, eg, by adding a -v (for verbose) flag to docker ps. Here's a simple prototype in bash to show what I mean:

# ./dockerpsv.sh 
CONTAINER      NAME                    PID PATH             CGROUP     IPC        MNT        NET        PID        USER       UTS       
host           bgregg-xenial-bpf-i-      1 systemd          4026531835 4026531839 4026531840 4026532197 4026531836 4026531837 4026531838
02a7cf65f82e   agitated_perlman       4560 bash             4026531835 4026532381 4026532379 4026532384 4026532382 4026531837 4026532380
3b2350c3cf2b   tender_almeida        25068 bash             4026531835 4026532442 4026532440 4026532445 4026532443 4026531837 4026532441

In my prototype (not shown above), I color namespaces red that match the host, to make it easy to see which namespaces are shared with the host.

Source: https://gist.github.com/brendangregg/1abcfeef9155ac526197f6f0abdd86bf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area/cliexp/beginnerkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions