All Submissions you make to Magento Inc. (“Magento") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here: https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html
Open Software License 3.0
253
stars
191
forks
source link
Support Docker Compose v2 CLI (docker-compose vs. docker compose) #352
Is your feature request related to a problem? Please describe.Docker Compose V2 use the new docker compose command, and the old is docker-compose
Describe the solution you'd like
Should support V1 and V2
Describe alternatives you've considered
Try to detect and use the correct command
# Support Compose V2
if docker compose version > /dev/null 2>&1; then
DOCKER_COMPOSE="docker compose"
else
DOCKER_COMPOSE="docker-compose"
fi
$DOCKER_COMPOSE --help
Is your feature request related to a problem? Please describe. Docker Compose V2 use the new
docker compose
command, and the old isdocker-compose
Describe the solution you'd like Should support V1 and V2
Describe alternatives you've considered Try to detect and use the correct command
Related files:
Additional context None