Mercurial > public > ssdt-docker
annotate 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 |
rev | line source |
---|---|
54 | 1 #!/bin/bash |
42
2e2b47145349
add script to convert host pid into container name
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
2 docker ps -q | xargs docker inspect --format '{{.State.Pid}} {{.Name}}' \ |
2e2b47145349
add script to convert host pid into container name
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
3 | grep "^$1" | sed 's/^.*\///g' |
2e2b47145349
add script to convert host pid into container name
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
4 |