I hereby claim:
- I am Phillipmartin on github.
- I am philipmartin (https://keybase.io/philipmartin) on keybase.
- I have a public key whose fingerprint is 94D1 40AD 992D EAC4 51D4 C7CF B8EA 1D43 ECA5 66C2
To claim this, I am signing this object:
| #Given a docker container and some ps-style args, what host-level processes does it contain? | |
| docker_ps() { | |
| ps -ef | grep $(docker inspect --format '{{.State.Pid}}' $2) | awk '{print $1}' | sed ':a;N;$!ba;s/\n/,/g' | xargs -IPIDs ps -q PIDs $1 | |
| } | |
| #Given a docker container, what is the host PID/container PID mapping? | |
| docker_ps_map() { | |
| for p in $(ps -ef | grep $(docker inspect --format '{{.State.Pid}}' $1) | awk '{print $2}'); do | |
| grep NSpid /proc/$p/status | |
| done |
I hereby claim:
To claim this, I am signing this object: