Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rangerz opened this issue Aug 9, 2022 · 1 comment
Open

Comments

@rangerz
Copy link

rangerz commented Aug 9, 2022

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

@BaDos
Copy link
Contributor

BaDos commented Aug 31, 2022

The internal task MCLOUD-9242 was created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for Grooming
Development

No branches or pull requests

2 participants