fix(lima): configure Docker host-gateway to reach the host #11414
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 299 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.341
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #11414"
general
weight: 0.35
jandubois
Summary
Configure Docker's
host-gateway-ipswith the resolvedhost.lima.internaladdress before starting Moby on the Lima backend. This makes--add-host=host.docker.internal:host-gatewayand Compose's equivalentextra_hostsentry reach services on the host instead of Docker's bridge inside the VM.host-gateway-ip/host-gateway-ipsoverrides.Closes #7611. Addresses the
host-gatewayportion of #7035; Windows andgateway.docker.internalare outside this change.The approach follows Colima's host-gateway configuration. Rancher uses its existing daemon JSON instead of Colima's systemd override. The setting is written before
startService('docker'), avoiding the first-boot ordering issue fixed by Colima #1097.Validation
backendHelper.spec.tsandlima.spec.ts— 43 tests passed.tsc -p tsconfig.jest.json— passed.git diff --check— passed.extra_hosts, and after a daemon restart.The running Rancher installation and its existing containers were not restarted or modified. The full application/BATS suite and live Linux testing were not run locally.
Local dependency setup used the exact upstream
node-forgev1.4.4 Git tag in a separate test dependency directory because the npm mirror did not yet contain its published package. Repository manifests and lockfile are unchanged.