fix(start): mount the podman machine's own socket on macOS #81
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.46) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 465 lines diff across 5 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.368
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #81"
general
weight: 0.35
hectorvent
Summary
With
podman machineon macOS, the socket the docker CLI reaches is a forwarder on the Mac, andfloci startbind-mounted that path into a container that runs inside the VM. Depending on the podman version the start failed (operation not supported, as reported in #78), or it reported ready while the emulator could not reach the daemon at all, so every Docker-backed service failed later. I reproduced the second case on Podman 5.8.2 (libkrun, rootful): the Mac path is visible in the VM because/var/foldersis shared, but nothing can connect to it.When the daemon is Podman on macOS (its
docker versioncomponents includePodman Engine),startnow askspodman --url <endpoint> info --format '{{.Host.RemoteSocket.Path}}'for the socket the daemon listens on inside the VM and mounts that. The Docker-compatible API has no field for it, so podman is asked.DOCKER_SOCKstill names the mounted socket and turns the lookup off, so the workaround from #78 keeps working. On macOS it is the mount even whenDOCKER_HOSTis set (the Mac forwarder for the CLI, the VM socket for the container), which is what the warning below tells the user to do.PATH),startwarns with a next step and keeps the previous mount.restartgoes through the same path.Closes #78
Type of change
fix:)feat:)feat!:orfix!:)Product trees affected
StartCommandis shared, so this reaches all four trees, OCI included.commands/gcp/)commands/az/)Checklist
mvn testpasses locallyREADME.mdupdated (if a command or flag changed)mvn package -Pnative), required if Jackson serialization or dependencies changed: not built; no Jackson type or dependency changed, the new code only runs one more subprocessfeat/fix/perfsubject becomes the release note, soCHANGELOG.mdneeds no hand editTests
PodmanMachineSocketTestcovers when the lookup applies, how the reported path becomes the bind source, a Podman daemon, Docker Desktop, an unreachable daemon, podman failing, and the warning instart.StartPreflightTest's fake client now stubs the lookup so it never runs the realdockerorpodmanon a Mac. Unit suite: 829 passed, 0 failed.Run against a real Podman 5.8.2 machine (libkrun, rootful), probing
/var/run/docker.sockfrom inside the emulator container withcurl --unix-socket ... /_ping:| Setup | Mounted |
_ping||---|---|---|
|
DOCKER_HOSTon the Mac socket (the #78 setup) |/run/podman/podman.sock| OK (failed before) || default socket through podman's mac helper |
/run/podman/podman.sock| OK ||
DOCKER_SOCKset | theDOCKER_SOCKpath | OK ||
DOCKER_HOSTon the Mac socket +DOCKER_SOCKon the VM socket,podmanoffPATH|/run/podman/podman.sock| OK ||
podmannot onPATH| Mac path, with the warning | fails, as before |Not verified: a rootless machine and Podman 6.x with applehv (the reporter's setup), and Docker Desktop live.
The skill's troubleshooting note is updated and its version bumped to 1.0.6.