Mercurial > public > ssdt-docker
view scripts/pid2name.sh @ 56:04d4865220ef
fix mode
author | Dave smith <smith@nwoca.org> |
---|---|
date | Thu, 25 Feb 2016 08:50:00 -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'