I am doing some tests on docker and containers and I was wondering:
Is there a method I can use to find all process associated with a docker container by its name or
When running this on the host, it will give you a list of processes running in a container with , showing host PIDs instead of container PIDs.
DID=$(docker inspect -f '{{.State.Pid}}' );ps --ppid $DID -o pid,ppid,cmd