Mercurial > public > ssdt-docker
view scripts/pid2name.sh @ 69:6aedaa7220db
fix argument
author | smith@nwoca.org |
---|---|
date | Fri, 18 Mar 2016 01:16:32 +0100 |
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'