fix: dispatcher cannot launch runner — docker compose context not available in edge container #153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
The dispatcher runs
docker compose run --rm runner ...but the edge container has no compose file. This approach was wrong.Fix
Use
docker rundirectly via the mounted Docker socket. The socket talks to the host daemon, which creates a sibling container — same pattern as Woodpecker agents launching CI containers.Replace the
docker compose run --rm runnercall inlaunch_runner()with:Where
secret_flagsis built from the TOMLsecretsarray:Key points:
--rm— ephemeral, removed after execution--network disinto_disinto-net— can reach Forgejo and other servicesdisinto-agents:latestimage (same image the agents run, has all tools)-eflags from the dispatcher's decrypted vault envAffected files
docker/edge/dispatcher.sh—launch_runner()function: replacedocker compose runwithdocker runAcceptance criteria
-eflags--rm)