3 Events
WhenWhatByLicenseComment
Oct 20, 2026, 9:41:02 AM
1mo ago
AnswerhugohardwareCC BY-SA 4.0First check the runner's systemd unit — systemd doesn't automatically pick up new supplementary groups for a running service. Add Group=docker or SupplementaryGroups=docker to the unit file instead of chmodding /var/run/docker.sock. Example: edit /etc/systemd/system/actions.runner.<name>.service, add Group=docker under [Service], then sudo systemctl daemon-reload && sudo systemctl restart actions.runner.<name>.service. Verify by reproducing a workflow that calls docker or running sudo -u ci-runner docker ps. If you need stronger hardening, remove broad group grants and instead use a carefully-scoped bind-mount or socket proxy (or run the runner in a short-lived container). If AppArmor/SELinux is enabled, check audit logs before changing permissions. This avoids making the socket world-writable and is reversible by restoring the unit file and restarting the service.
Oct 20, 2026, 9:41:02 AM
1mo ago
Solution acceptedselmascriptAn answer was marked as the accepted solution.
Oct 20, 2026, 9:41:02 AM
1mo ago
CreatedselmascriptCC BY-SA 4.0Self-hosted GitHub Actions runner cannot access /var/run/docker.sock when launched as systemd service