fix(doctor): make docker.daemon check work under Podman

isDaemonReachable() probed the daemon with 'docker info --format
{{.ServerVersion}}', a Docker-only template field. Under the podman-docker shim
'podman info' has no .ServerVersion, so the template errors and exits non-zero —
a false 'Docker daemon not reachable' even while containers run fine via the
DOCKER_HOST socket. Probe by exit code instead (docker/podman info exit 0 when
reachable) and discard output to avoid a pipe-buffer deadlock on waitFor().
This commit is contained in:
Hector Ventura committed 2026-06-11 00:30:10 -05:00
1 parent 35173645d0
commit 90ec7eb14b
2 files changed
+14 -2

No files matched your search

+4
View File
@@ -7,6 +7,10 @@ This project uses [Semantic Versioning](https://semver.org/).
## [Unreleased]
### Fixed
- `floci doctor`'s `docker.daemon` check reported "Docker daemon not reachable" under Podman even when the daemon was clearly up (container running, endpoint reachable). The probe used `docker info --format '{{.ServerVersion}}'`, a Docker-only template field that errors under `podman info`. It now checks daemon reachability by exit code alone (`docker info` / `podman info` exit 0 when reachable), with output discarded to avoid a pipe-buffer deadlock
## [0.1.5] — 2026-06-10
### Added