From: Sam Saffron Date: Wed, 18 Dec 2013 07:20:10 +0000 (-0800) Subject: correct detection logic X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3d3783068e206c91d68eefbae7d6cec67d9fbeaa;p=discourse_docker.git correct detection logic --- diff --git a/launcher b/launcher index 35de3a8..4c09af0 100755 --- a/launcher +++ b/launcher @@ -197,7 +197,7 @@ case "$command" in set_template_info set_volumes - existing=`docker ps -a | awk '{ print $1, $(NF) }' | grep $config | awk '{ print $1 }'` + existing=`docker ps -a | awk '{ print $1, $(NF) }' | grep "$config:latest" | awk '{ print $1 }'` if [ ! -z $existing ] then echo "Found an existing container by its name, recovering cidfile, please rerun"