Drop custom dind sidecar, use runner-provided docker daemon
Some checks failed
Build and push image / build-and-push (push) Failing after 1m29s

The Forgejo runner infra now gives job containers a privileged
container pre-wired to its own dind sidecar via DOCKER_HOST, so
defining our own docker:dind service would start a conflicting
second daemon. Keep the node image + docker CLI install (still
needed) and drop the services/env block.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Lucas Seidelin Rosenvold Christensen 2026-09-18 15:25:18 +02:00
parent 8f3138a202
commit f22e93963e

View file

@ -9,16 +9,10 @@ jobs:
build-and-push: build-and-push:
runs-on: docker runs-on: docker
# actions/checkout & co. are JS actions and need Node, so the job # actions/checkout & co. are JS actions and need Node, so the job
# container has to be a Node image (not a bare docker CLI image). We # container has to be a Node image (not a bare docker CLI image). The
# install the Docker CLI into it and talk to a sidecar dind daemon over # runner already provides a privileged container wired up to its own
# the network instead of relying on the runner exposing a host socket. # dind sidecar via DOCKER_HOST, so we just need the docker CLI itself.
container: node:20-bookworm container: node:20-bookworm
services:
docker:
image: docker:27-dind
options: --privileged
env:
DOCKER_HOST: tcp://docker:2375
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4