From 6f041688daa9acf1a141824fe380fd28dd274185 Mon Sep 17 00:00:00 2001 From: Job Date: Mon, 15 May 2023 19:59:54 +0000 Subject: [PATCH] Added ability to start docker service on startup --- entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 5196b7d1..bc202d4f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -46,6 +46,7 @@ _LABELS=${LABELS:-default} _RUNNER_GROUP=${RUNNER_GROUP:-Default} _GITHUB_HOST=${GITHUB_HOST:="github.com"} _RUN_AS_ROOT=${RUN_AS_ROOT:="true"} +_START_DOCKER_SERVICE=${START_DOCKER_SERVICE:="false"} # ensure backwards compatibility if [[ -z ${RUNNER_SCOPE} ]]; then @@ -187,3 +188,8 @@ else "$@" fi fi + +if [[ ${_START_DOCKER_SERVICE} == "true" ]]; then + echo "Starting docker service" + service docker start +fi