view scripts/pid2name.sh @ 63:f04f13a1d5d8

add script to send file to ssdt upload server
author smith@nwoca.org
date Fri, 11 Mar 2016 16:39:37 +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'