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

@m2-community-project m2-community-project bot added this to Ready for Grooming in Backlog Aug 9, 2022
@m2-community-project m2-community-project bot moved this from Ready for Grooming to Ready for Development in Backlog Aug 31, 2022
@BaDos BaDos self-assigned this Aug 31, 2022
@BaDos
Copy link
Contributor

BaDos commented Aug 31, 2022

The internal task MCLOUD-9242 was created

@BaDos BaDos removed their assignment Mar 2, 2024
@m2-community-project m2-community-project bot moved this from Ready for Development to Ready for Grooming in Backlog Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Backlog
Ready for Grooming
Development

No branches or pull requests

2 participants