fix: add security context to Forgejo runner for Docker socket access

Run the forgejo-runner container as root (uid 0) to allow access to the
Docker socket. This is required for Docker-in-Docker functionality needed
by Forgejo Actions workflows.

Without this, the runner fails with "permission denied" when trying to
access /var/run/docker.sock.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
CTO Agent 2026-07-18 15:46:54 +00:00
parent 64ce55d21f
commit 0c66aa5eb6

View file

@ -18,6 +18,9 @@ spec:
- name: runner - name: runner
image: code.forgejo.org/forgejo/runner:4.0.1 image: code.forgejo.org/forgejo/runner:4.0.1
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 0
runAsGroup: 0
command: command:
- sh - sh
- -c - -c