Podman support - #1859
Open
isc-klu wants to merge 34 commits into
Open
Conversation
podman-compose diverges from docker-compose in ways that can't be papered over by composeCommand alone: its `port` output is a bare port number instead of a host:port pair, and it doesn't support `ps --services --filter status=running`. Rather than generalize the existing docker-compose code to handle both, add a self-contained portFromPodmanCompose used only when composeCommand resolves to podman-compose, leaving the original docker-compose logic untouched.
…sitive
The retry-on-parse-error added earlier was speculative and never
confirmed necessary; drop it pending an actual repro.
cmd.includes("podman") could false-positive on a compose file/env
file named with "podman" in it, since cmd also embeds the -f/--env-file
arguments. Check the resolved executable directly instead.
isc-klu
marked this pull request as ready for review
September 4, 2026 23:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I implemented this so I could test docker-compose connection scenarios without installing docker myself. Not sure there's broader interest in podman support — feedback welcome.
Summary
composeCommand()falls back topodman-composewhen neitherdocker composenordocker-composeis present.portFromPodmanCompose, used only for podman: itsportoutput is a bare port number (nothost:port), and it lacksps --services --filter status=running, so it needs its own resolution viaps --format json.Test plan
podman-compose: resolves both ports, reports failures correctly.tsc/eslintclean.