From 31d0923fdfc9d45fb9210c7b0785a7dccce9c9ae Mon Sep 17 00:00:00 2001 From: William Turner Date: Sun, 23 Aug 2026 11:21:27 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20act=5Frunner=20config=20file/mount=20?= =?UTF-8?q?=E2=80=94=20unreliable=20under=20Portainer=20git-stack=20deploy?= =?UTF-8?q?,=20and=20unnecessary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bind-mounted relative path resolved to nothing once Portainer's cloned checkout no longer persisted for the container's runtime, so Docker silently created an empty directory there and act_runner crash-looped. act_runner already auto-detects its own docker.sock without any custom config. --- act-runner-config.yaml | 4 ---- docker-compose.yml | 7 +++++-- 2 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 act-runner-config.yaml diff --git a/act-runner-config.yaml b/act-runner-config.yaml deleted file mode 100644 index 94aff0d..0000000 --- a/act-runner-config.yaml +++ /dev/null @@ -1,4 +0,0 @@ -# act_runner auto-detects that it has its own /var/run/docker.sock mounted (see -# docker-compose.yml) and passes it through to job containers itself — no explicit -# options needed here. This file is kept (even near-empty) so CONFIG_FILE has a -# stable target if runner-level settings are needed later. diff --git a/docker-compose.yml b/docker-compose.yml index 19c6e60..f54ead5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -73,11 +73,14 @@ services: # catthehacker/ubuntu:act-latest is the standard job-container image for # act/act_runner — includes git + docker CLI, which job steps need. GITEA_RUNNER_LABELS: docker:docker://catthehacker/ubuntu:act-latest - CONFIG_FILE: /etc/act_runner/config.yaml + # No custom config.yaml: act_runner already auto-detects its own bind-mounted + # docker.sock and passes it through to job containers with no extra config needed. + # (A relative-path bind-mounted config file here would also be unreliable under + # Portainer's git-stack deploy — its cloned checkout doesn't persist for the + # container's runtime, so the mount source can silently resolve to nothing.) volumes: - /var/run/docker.sock:/var/run/docker.sock - act_runner_data:/data - - ./act-runner-config.yaml:/etc/act_runner/config.yaml:ro networks: - web