From 49bc55f966d91b2a407c883cf1d0f21d0cdd9f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Tue, 5 Oct 2021 13:23:05 +0200 Subject: [PATCH] fix(docker-compose): fix for slow `docker compose` call on remote Docker contexts (#10264) Fixes #10264 Co-authored-by: Frederick Zhang --- plugins/docker-compose/docker-compose.plugin.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/docker-compose/docker-compose.plugin.zsh b/plugins/docker-compose/docker-compose.plugin.zsh index 2eba20a09..13985fc82 100644 --- a/plugins/docker-compose/docker-compose.plugin.zsh +++ b/plugins/docker-compose/docker-compose.plugin.zsh @@ -1,5 +1,7 @@ # support Compose v2 as docker CLI plugin -command docker compose &>/dev/null && dccmd='docker compose' || dccmd='docker-compose' +DOCKER_CONTEXT=default command docker compose &>/dev/null \ + && dccmd='docker compose' \ + || dccmd='docker-compose' alias dco="$dccmd" alias dcb="$dccmd build"