From 49f8a851ccf6f44dc38440567da10429bde87b4d Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Wed, 14 Jul 2021 17:26:38 +0700 Subject: [PATCH] Updated docker exec --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3ef5522..7f74b3f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,4 +27,4 @@ if [ -z $semicolon_delimited_script ]; then semicolon_delimited_script="echo $(whoami)" fi -exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" $INPUT_OPTIONS --workdir $WORKDIR -v $WORKDIR:"/github/workspace" --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`" \ No newline at end of file +exec docker run -v "/var/run/docker.sock":"/var/run/docker.sock" --rm --workdir $WORKDIR -v $WORKDIR:"/github/workspace" --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "`cat semicolon_delimited_script`" \ No newline at end of file