Job containers need access to the host Docker socket to run docker build/push commands. Adding -v /var/run/docker.sock:/var/run/docker.sock to container options so docker CLI in job containers can reach the host Docker daemon. Co-Authored-By: Paperclip <noreply@paperclip.ing>
23 lines
505 B
YAML
23 lines
505 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: forgejo-runner-config
|
|
namespace: forgejo
|
|
data:
|
|
config.yaml: |
|
|
log:
|
|
level: info
|
|
runner:
|
|
name: k3s-runner-1
|
|
capacity: 2
|
|
labels:
|
|
- "ubuntu-latest:docker://node:24-bookworm"
|
|
- "ubuntu-22.04:docker://node:24-bookworm"
|
|
timeout: 3h
|
|
cache:
|
|
enabled: true
|
|
dir: /data/cache
|
|
container:
|
|
network: host
|
|
privileged: false
|
|
options: -v /var/run/docker.sock:/var/run/docker.sock
|