pingchunzhang commented on code in PR #65153:
URL: https://github.com/apache/doris/pull/65153#discussion_r3568467239


##########
docker/runtime/doris-compose/utils.py:
##########
@@ -251,17 +269,17 @@ def _command_available(cmd):
             )
         return cmd
 
-    # Prefer Compose v2.
-    if _command_available(["docker", "compose", "version"]):
+    # Prefer Compose v2 when it can talk to the daemon.
+    if _compose_v2_usable(["docker", "compose"]):
         return ["docker", "compose"]
 
-    # Fallback for old machines.
+    # Fallback for old machines or environments with a newer standalone client.
     if _command_available(["docker-compose", "version"]):

Review Comment:
   ignore



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to