diff --git a/RunCmdLine.sh b/RunCmdLine.sh
index ce90d95d9f670639a6e68169eb00edb937e9b4dd..b60521dba445d45d60f959f930a7b6f7af48d5f5 100644
--- a/RunCmdLine.sh
+++ b/RunCmdLine.sh
@@ -41,7 +41,7 @@ else
     esac
 fi
 
-CONTAINER_ID=$( docker exec --rm   -it  $DOCK_VOL $CONTAINER_ID snakemake -s /workflow/Snakefile all --configfile $config --cores $cores)
+CONTAINER_ID=$( docker run --rm $DOCK_VOL $APP_IMG snakemake -s /workflow/Snakefile all --configfile $config --cores $cores)
 
 if [ $CONTAINER_ID ]
 then