From 8915cf92b5dbd776e2c05872464668bb69875880 Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Fri, 27 Nov 2026 02:14:38 -0500 Subject: [PATCH] fix(ci-runners): back the Kata dind socket with guest tmpfs A disk-backed emptyDir is a virtiofs share under Kata, and a unix socket on virtiofs is visible across the pod but unconnectable: the runner crashlooped on 'cannot ping the docker daemon ... unix:///var/run/docker.sock' although ls -l showed srw-rw---- root:1000 and the dind sidecar's own 'docker version' on the same path worked. medium: Memory makes /var/run a tmpfs inside the guest, so the socket is a real inode for both containers and the existing '-v /var/run/docker.sock /var/run/docker.sock' job option keeps working. Verified: the runner declared successfully and polls (deploy-arm64 runner). --- apps/base/forgejo/runner-deploy-arm64.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/apps/base/forgejo/runner-deploy-arm64.yaml b/apps/base/forgejo/runner-deploy-arm64.yaml index d740c8a..0ee54ac 100644 --- a/apps/base/forgejo/runner-deploy-arm64.yaml +++ b/apps/base/forgejo/runner-deploy-arm64.yaml @@ -281,4 +281,17 @@ spec: persistentVolumeClaim: claimName: forgejo-runner-deploy-arm64-dind - name: dind-run - emptyDir: {} + # tmpfs on purpose, NOT the default disk-backed emptyDir: under Kata a + # disk emptyDir is a virtiofs share, and a unix socket created on + # virtiofs is visible to the other containers in the pod but + # unconnectable. Measured 2026-11-27: the runner crashlooped on + # `cannot ping the docker daemon ... unix:///var/run/docker.sock` + # although `ls -l` showed the socket `srw-rw---- root:1000`, while the + # dind sidecar's own `docker version` on the same path worked. A + # memory-backed emptyDir is a tmpfs inside the guest, so the socket is + # a real inode the runner and the job containers can both connect to, + # and the existing `-v /var/run/docker.sock` job option keeps working. + # 64Mi holds the socket, the `dind-ready` marker and nothing else. + emptyDir: + medium: Memory + sizeLimit: 64Mi -- 2.52.0