fix(docker-compose): fix for slow docker compose
call on remote Docker contexts (#10264)
Fixes #10264 Co-authored-by: Frederick Zhang <frederick888@tsundere.moe>
This commit is contained in:
parent
f793baf370
commit
49bc55f966
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue