fix: Resolve host.docker.internal hostname resolution issue

- Change cache host from 'host.docker.internal' to empty string
- Allow act_runner to auto-detect the correct host IP address
- Update all runner configs: docker, heavy, light, security
- Improve troubleshooting scripts with host IP detection:
  - Linux/macOS: Use ip route, hostname -I, or ifconfig
  - Windows: Use Get-NetIPAddress PowerShell cmdlets
- Update documentation to reflect auto-detection approach

This resolves the 'getaddrinfo ENOTFOUND host.docker.internal' error
by using a more compatible approach that works across different
Docker setups and operating systems.
This commit is contained in:
GSRN
2025-09-15 17:00:04 +02:00
parent 79250ea3ab
commit 65c93ae685
7 changed files with 84 additions and 20 deletions

View File

@@ -32,7 +32,7 @@ This ensures that cache failures don't cause the entire pipeline to fail.
### 2. Runner Configuration Fixes
Updated all existing runner configuration files with:
- **Fixed Host**: `host.docker.internal` (allows containers to access host)
- **Auto-detect Host**: Empty host field (allows act_runner to auto-detect the correct IP)
- **Fixed Port**: `44029` (instead of random port 0)
- **Host Network**: Uses host networking for better connectivity
@@ -91,7 +91,7 @@ Update your runner configuration with these key changes:
```yaml
cache:
enabled: true
host: "host.docker.internal" # Fixed host
host: "" # Auto-detect host IP
port: 44029 # Fixed port
container: