magento-cloud-docker icon indicating copy to clipboard operation
magento-cloud-docker copied to clipboard

Support Docker Compose v2 CLI (docker-compose vs. docker compose)

Open rangerz opened this issue 2 years ago • 1 comments

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

Related files:

Additional context None

rangerz avatar Aug 09 '22 07:08 rangerz

The internal task MCLOUD-9242 was created

BaDos avatar Aug 31 '22 15:08 BaDos