Disable runner auto update
Problem
Describe the bug We are running the runner in docker containers and it is forcing us to update the runner and shuts it down. Is there any way we can disable this? https://github.com/ydataai/docker-github-runner -> project with the Dockerfile to build runner in containers To Reproduce 1. Go to the folder where you have github-runner 2. execute ./run.sh 3. Run a job Expected behavior I want to run the runner without it forcing me to update and shutting down my docker Runner Version and Platform Version of your runner? v2.169.1 OS of the machine running the runner? Linux Job Log Output [code block] Runner and Worker's Diagnostic Logs Doesn't seem relevant.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Disable Runner Auto Update in Docker Container
The GitHub Actions runner is designed to automatically check for updates and apply them, which can cause the runner to shut down unexpectedly when running in a Docker container. This behavior is intended to ensure that users are running the latest version, but it can disrupt workflows in environments where stability is prioritized.
Awaiting Verification
Be the first to verify this fix
- 1
Modify Dockerfile to Disable Auto Update
Edit the Dockerfile used to build the runner image to include an environment variable that disables the auto-update feature.
dockerfileENV RUNNER_NO_UPDATE=true - 2
Rebuild the Docker Image
After modifying the Dockerfile, rebuild the Docker image to apply the changes. This ensures that the runner will start with the updated configuration.
bashdocker build -t my-github-runner . - 3
Run the Updated Docker Container
Start the Docker container using the newly built image to ensure that the runner operates without attempting to update.
bashdocker run -d --name github-runner my-github-runner - 4
Verify Runner Status
Check the logs of the running container to confirm that the runner is operating without attempting to update. Look for any messages indicating an update check.
bashdocker logs github-runner
Validation
To confirm the fix worked, ensure that the runner continues to operate without shutting down due to an update prompt. Monitor the logs for any messages related to updates and verify that the runner processes jobs as expected.
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep