fix: update gitea-runner to use Unix socket for Docker

- Changed DOCKER_HOST from tcp://localhost:2375 to unix:///var/run/docker.sock
- Updated docker_host in container config
- Fixed runner to use Unix socket instead of TCP/TLS
This commit is contained in:
fchinembiri 2026-05-04 22:32:08 +02:00
parent 86c575330d
commit 208d848ab2
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ data:
level: info level: info
runner: runner:
file: .runner file: .runner
capacity: 1 capacity: 2
timeout: 3h timeout: 3h
fetch_timeout: 5s fetch_timeout: 5s
fetch_interval: 2s fetch_interval: 2s
@ -18,7 +18,7 @@ data:
- "ubuntu-24.04:docker://docker.gitea.com/runner-images:ubuntu-24.04" - "ubuntu-24.04:docker://docker.gitea.com/runner-images:ubuntu-24.04"
- "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04" - "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"
envs: envs:
DOCKER_HOST: "tcp://localhost:2375" DOCKER_HOST: "unix:///var/run/docker.sock"
cache: cache:
enabled: true enabled: true
dir: "" dir: ""
@ -27,5 +27,5 @@ data:
container: container:
privileged: true privileged: true
network: host network: host
docker_host: "tcp://localhost:2375" docker_host: "unix:///var/run/docker.sock"
force_pull: true force_pull: true