← Back to Pull requests

fix(start): mount the podman machine's own socket on macOS #81

Closed
unknown closed this pull request without merging on Nov 19, 2026 04:47 UTC
View on GitHub
unknown unknown commented on Nov 19, 2026 04:35 UTC
Author

Summary

With podman machine on macOS, the socket the docker CLI reaches is a forwarder on the Mac, and floci start bind-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/folders is shared, but nothing can connect to it.

When the daemon is Podman on macOS (its docker version components include Podman Engine), start now asks podman --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_SOCK still names the mounted socket and turns the lookup off, so the workaround from #78 keeps working. On macOS it is the mount even when DOCKER_HOST is set (the Mac forwarder for the CLI, the VM socket for the container), which is what the warning below tells the user to do.

  • If podman cannot answer (for example it is not on PATH), start warns with a next step and keeps the previous mount.

  • Linux, remote daemons and Docker Desktop are unchanged. restart goes through the same path.
  • Closes #78

    Type of change

  • Bug fix (fix:)

  • New feature (feat:)

  • Breaking change (feat!: or fix!:)

  • Docs / chore
  • Product trees affected

    StartCommand is shared, so this reaches all four trees, OCI included.

  • AWS (root tree)

  • GCP (commands/gcp/)

  • Azure (commands/az/)

  • N/A (shared infrastructure, docs, CI)
  • Checklist

  • mvn test passes locally

  • New or updated tests added (or explained below why not needed)

  • README.md updated (if a command or flag changed)

  • Native binary verified (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 subprocess

  • Commit messages / PR title follow Conventional Commits: a feat/fix/perf subject becomes the release note, so CHANGELOG.md needs no hand edit

  • I have no more than 2 open, non-draft pull requests and no more than 4 open pull requests in total (drafts included) in this repository (maintainers and dependency bots are exempt).
  • Tests

    PodmanMachineSocketTest covers 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 in start. StartPreflightTest's fake client now stubs the lookup so it never runs the real docker or podman on a Mac. Unit suite: 829 passed, 0 failed.

    Run against a real Podman 5.8.2 machine (libkrun, rootful), probing /var/run/docker.sock from inside the emulator container with curl --unix-socket ... /_ping:

    | Setup | Mounted | _ping |
    |---|---|---|
    | DOCKER_HOST on 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_SOCK set | the DOCKER_SOCK path | OK |
    | DOCKER_HOST on the Mac socket + DOCKER_SOCK on the VM socket, podman off PATH | /run/podman/podman.sock | OK |
    | podman not on PATH | 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.

    Diff: 465 lines (+348 / -117) across 5 files Reviewer: hectorvent Review duration: 11m
    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
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.6% (MEDIUM) · Higher = larger blast radius
    45.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.7% · Safe to merge
    19.7%