Skip to content

[awf] ARC-DinD: auto-detection should engage --docker-host-path-prefix for (redacted) socket from sibling daemon pod #4023

Description

@lpcox

Problem

gh-aw's ARC/DinD auto-detection only triggers --docker-host-path-prefix when DOCKER_HOST matches ^(redacted) On ARC deployments where the runner mounts a sibling daemon pod's socket as (redacted) the regex never fires, bind mounts reference paths the daemon cannot see, and the run fails.

Context

Upstream report: github/gh-aw#33777

Root Cause

In src/option-parsers.ts, resolveDockerHostPathPrefix() checks for DOCKER_HOST matching ^(redacted) (broadened from localhost/127.0.0.1` on 2026-05-13). A unix socket from a sibling pod represents the same DinD split-filesystem condition but does not match the tcp pattern.

Proposed Solution

  1. In src/option-parsers.ts resolveDockerHostPathPrefix(), extend detection to also fire when DOCKER_HOST is a (redacted) path that does not match the local machine's docker socket (i.e., it is a mount from a sibling pod, detectable if the socket path is non-standard like /var/run/dind.sockor ifDOCKER_HOST` is set at all and a known ARC env var is present).
  2. Alternatively, add an explicit AWF_FORCE_DIND=1 env var to force-enable the prefix without regex.
  3. Update the regex to also match (redacted) prefixed values when running in an ARC context (check for ACTIONS_RUNNER_POD_NAME` or similar env var).
  4. Add a unit test for the new detection path.

Generated by Firewall Issue Dispatcher · sonnet46 1.2M ·

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions