forgejo-runner: try to configure dind
Some checks failed
/ Ansible Lint (push) Failing after 2m38s

This commit is contained in:
Stefan Bethke 2026-07-04 12:50:26 +02:00
commit 5004d16270
6 changed files with 57 additions and 1 deletions

View file

@ -23,6 +23,8 @@ runner:
- alpine:docker://docker.io/library/alpine:latest
# Debian
- debian:docker://docker.io/library/debian:latest
envs:
DOCKER_HOST: tcp://dind_container.docker.internal:2375
cache:
enabled: false
@ -40,7 +42,8 @@ container:
## Add /etc/gvisor-helper-resolv.conf to valid_volumes to make the bind-mount in options work.
## valid_volumes: ["/etc/gvisor-helper-resolv.conf:ro"]
# Leave "-", so no docker host will be mounted in the job container.
docker_host: "-"
docker_host: "tcp://127.0.0.1:2376"
options: "--add-host=dind_container.docker.internal:host-gateway"
force_pull: true
force_rebuild: false