From 8c3f0c6d4db2db965dfc9ff69f65dd2c8166b3ca Mon Sep 17 00:00:00 2001 From: Coldchen99 <38379745+Coldchen99@users.noreply.github.com> Date: Wed, 26 Nov 2025 14:00:57 +0800 Subject: [PATCH] fix: support both docker-compose v1 and docker compose v2 (#22581) fix: resolve 'docker-compose: command not found' error Add fallback to support Docker Compose V2 plugin format when standalone docker-compose binary is not available. Signed-off-by: coldenchen Co-authored-by: coldenchen --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 88a02f31d1..2619fd7758 100644 --- a/Makefile +++ b/Makefile @@ -140,7 +140,7 @@ DOCKERRMIMAGE=$(DOCKERCMD) rmi DOCKERPULL=$(DOCKERCMD) pull DOCKERIMAGES=$(DOCKERCMD) images DOCKERSAVE=$(DOCKERCMD) save -DOCKERCOMPOSECMD=$(shell which docker-compose) +DOCKERCOMPOSECMD=$(shell which docker-compose 2>/dev/null || echo "docker compose") DOCKERTAG=$(DOCKERCMD) tag # go parameters