view scripts/pid2name.sh @ 60:9971f134a48e

fix script name
author smith@nwoca.org
date Wed, 09 Mar 2016 01:20:27 +0000
parents 334d65dac778
children aa2fd199ba56
line wrap: on
line source
#!/bin/bash
docker ps -q | xargs docker inspect --format '{{.State.Pid}} {{.Name}}' \
     | grep "^$1" |  sed 's/^.*\///g'