From b24bcdae8256917c7ca373696884ed10c87ef771 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Wed, 14 Jul 2021 17:39:08 +0700 Subject: [PATCH] Add mount vol --- entrypoint.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 46ecea3..7e35c76 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -31,13 +31,4 @@ echo "My name is: $(whoami)" echo "Start executing docker..." -INPUT_OPTIONS="--workdir $WORKDIR -v $WORKDIR:$WORKDIR $INPUT_OPTIONS" -echo $INPUT_OPTIONS - -docker ps - -docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`" - -docker ps - -exec echo "Hahaha.........." \ No newline at end of file +exec docker run -it --rm --workdir "$WORKDIR" -v "$WORKDIR":"$WORKDIR" -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`" \ No newline at end of file