correct detection logic
authorSam Saffron <sam.saffron@gmail.com>
Wed, 18 Dec 2013 07:20:10 +0000 (23:20 -0800)
committerSam Saffron <sam.saffron@gmail.com>
Wed, 18 Dec 2013 07:20:10 +0000 (23:20 -0800)
launcher

index 35de3a89b4fd65d5a121eac600451111128c5ca7..4c09af0ce7cc2a32caf27a4ae37bfbbb0c4177a9 100755 (executable)
--- 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"