Added ability to start docker service on startup

This commit is contained in:
Job
2023-05-15 19:59:54 +00:00
parent 41540bedf9
commit 894801ed03
+6
View File
@@ -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