view scripts/pid2name.sh @ 55:77ff739c078d

add script to provide shortened docker ps with ssdt labels
author smith@nwoca.org
date Thu, 25 Feb 2016 08:47:45 -0500
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'