ci: docker CLI image for build job (+ runner automount needed) #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ci-docker-cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Run #48 (the post-merge build on main) failed at the registry login step with
docker: command not found: the runner'sdockerlabel starts jobs innode:20-bookworm, which has no docker CLI.This switches the build job's container to
catthehacker/ubuntu:act-latest(node + git + docker CLI preinstalled — the standard act-ecosystem image; ~1 GB pull, cached on the runner after the first run).⚠️ Also requires a one-time runner config change
The CLI still needs to reach a docker daemon. Per the Forgejo docs, the runner's default
docker_host: "-"does NOT share its docker socket with job containers. On the runner host, edit the runner'sconfig.yml:then restart forgejo-runner. (Docs note automount trades isolation for simplicity — reasonable for a single-user instance; the alternative is a privileged docker-in-docker service.)
Without that change this PR's build job will get "Cannot connect to the Docker daemon" instead — the test job on this PR will still pass either way, since the docker steps only run on push to main.
https://claude.ai/code/session_01RaLHHSp1qSk9L1oswRD8GJ