view scripts/pid2name.sh @ 73:d2c44193fbaa

explictly remove db's before import
author smith@nwoca.org
date Mon, 21 Mar 2016 22:17:55 +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'