From 3d3783068e206c91d68eefbae7d6cec67d9fbeaa Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 17 Dec 2013 23:20:10 -0800 Subject: [PATCH] correct detection logic --- launcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.25.1