diff --git a/RunCmdLine.sh b/RunCmdLine.sh
index a6bde6e9d303af59676f203d01bb9fe83987ead0..98306017867c055b1393e9be90364ac04f509eaf 100644
--- a/RunCmdLine.sh
+++ b/RunCmdLine.sh
@@ -6,6 +6,7 @@ then
   echo usage : $0 dataDir resultsDir configFile nbCores '[dockerHub|local]'
   exit
 fi
+
 # Docker volumes
 # MBB Workflows reads data from /Data and write results to /Results
 
@@ -33,7 +34,7 @@ then
 else 
     IMG_SRC=$5
     case $IMG_SRC in
-        docker )
+        dockerHub )
             APP_IMG="mbbteam/rnaseqde:latest"  ;;
         local)
             docker build . -t rnaseqde:latest 
@@ -43,12 +44,13 @@ else
     esac
 fi
 
-CONTAINER_ID=$( docker run --rm $DOCK_VOL $APP_IMG snakemake -s /workflow/Snakefile all --configfile $config --cores $cores)
+docker run --rm $DOCK_VOL --cidfile="CID.txt"  $APP_IMG snakemake -s /workflow/Snakefile all --configfile $config --cores $cores
 
+CONTAINER_ID=$(cat CID.txt)
 if [ $CONTAINER_ID ]
 then
     echo " "
-    echo Results were written to    : $3
+    echo Results were written to    : $2
     echo " "
 else
     echo Failed to run the docker container  !!
diff --git a/deployBigMem.sh b/deployBigMem.sh
index bd0661abb893cb59bccb07c4c5047f67b812b215..2bffc947cf8951fc1c631bce9ffd74154bc7b514 100644
--- a/deployBigMem.sh
+++ b/deployBigMem.sh
@@ -71,7 +71,7 @@ then
 else 
     IMG_SRC=$3
     case $IMG_SRC in
-        docker )
+        dockerHub )
             APP_IMG="mbbteam/rnaseqde:latest"  ;;
         local)
             docker build . -t rnaseqde:latest