Skip to content

Commit

Permalink
Added ability to start docker service on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
LordChunk committed May 15, 2023
1 parent 9cb13e5 commit 6f04168
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -187,3 +188,8 @@ else
"$@"
fi
fi

if [[ ${_START_DOCKER_SERVICE} == "true" ]]; then
echo "Starting docker service"
service docker start
fi

0 comments on commit 6f04168

Please sign in to comment.