From 4c5a00a0e04520a6aca135217723d979034d8b5b Mon Sep 17 00:00:00 2001 From: Daniel Maksymilian Syrnicki Date: Tue, 14 Apr 2026 18:40:16 +0200 Subject: [PATCH] ci: drop ineffective container.options override for build-iso MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit forgejo-runner 6.4 filters `--network` out of `container.options`, so the workflow-level override was silently ignored and the job kept landing on a per-task network where `docker-in-docker` didn't resolve. Fixed at the right level by editing the runner's `/data/config.yml` (`container.network: "forgejo-runner_default"`) and restarting the forgejo-runner container — every job now joins the shared network so DOCKER_HOST=tcp://docker-in-docker:2375 just works. Workflow trimmed back to only what's needed: DOCKER_HOST env pin. The default runner image (catthehacker/ubuntu:act-latest) already has the docker CLI. Co-Authored-By: Claude Opus 4.6 (1M context) --- .forgejo/workflows/build-iso.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/build-iso.yml b/.forgejo/workflows/build-iso.yml index 55454ef..a244c4a 100644 --- a/.forgejo/workflows/build-iso.yml +++ b/.forgejo/workflows/build-iso.yml @@ -16,14 +16,12 @@ jobs: build-iso: runs-on: ubuntu-latest timeout-minutes: 30 - # Attach the job container to `forgejo-runner_default` so the - # `docker-in-docker` hostname (the DinD sidecar) is DNS-resolvable. - # Without this the job runs on its own per-job network and DOCKER_HOST - # resolves nowhere. catthehacker/ubuntu:act-latest already ships - # docker CLI, so we don't need to apt-install anything. - container: - image: catthehacker/ubuntu:act-latest - options: --network forgejo-runner_default + # DOCKER_HOST points the docker CLI at the DinD sidecar. The sidecar's + # hostname is DNS-resolvable because forgejo-runner is configured with + # `container.network: "forgejo-runner_default"`, which attaches every + # job container to the shared network where docker-in-docker lives. + # The default `ubuntu-latest` image (catthehacker/ubuntu:act-latest) + # already ships the docker CLI. env: DOCKER_HOST: tcp://docker-in-docker:2375 steps: