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:
Marc Cornellà 2021-10-05 13:23:05 +02:00
parent f793baf370
commit 49bc55f966
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -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"