From e57c6186f92d66e4525786e56b018c08cf792d2f Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Thu, 12 Feb 2026 18:32:16 -0500 Subject: [PATCH] fix: check compose version output, not just exit code Without the plugin, `docker compose version` can still exit 0 by falling through to `docker version`. Grep for "Compose" in the output to reliably detect the plugin. --- scripts/setup-standalone.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/setup-standalone.sh b/scripts/setup-standalone.sh index 82ddf294..224b688a 100755 --- a/scripts/setup-standalone.sh +++ b/scripts/setup-standalone.sh @@ -491,8 +491,10 @@ main() { exit 1 fi - # Ensure Docker Compose V2 plugin is available - if ! docker compose version &>/dev/null; then + # Ensure Docker Compose V2 plugin is available. + # Check output for "Compose" — without the plugin, `docker compose version` + # may still exit 0 (falling through to `docker version`). + if ! docker compose version 2>/dev/null | grep -qi compose; then err "Docker Compose plugin not found." err "Install Docker Desktop, OrbStack, or: brew install docker-compose" exit 1