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

Add support for Compose V2 #5278

Closed
dboreham opened this issue Apr 20, 2022 · 3 comments
Closed

Add support for Compose V2 #5278

dboreham opened this issue Apr 20, 2022 · 3 comments

Comments

@dboreham
Copy link
Contributor

In recent versions, DockerCo changed the way compose functionality is delivered. In place of the old docker-compose script, there is now a CLI extension for the main docker command, so compose is invoked with docker compose <stuff> rather than docker-compose <stuff>.

Testcontainers, when running local compose, is currently trying to exec docker-compose and so this fails on a system that has recent docker installed: https://github.com/testcontainers/testcontainers-java/blob/master/core/src/main/java/org/testcontainers/containers/DockerComposeContainer.java#L690

While it is possible to work around with a shell script named docker-compose that delegates to docker compose, it would be good if testcontainers worked out of the box with recent docker installations (note a bash alias does not work here).

@aidando73
Copy link
Contributor

Hi @dboreham, it looks like it's currently in the works: #5596

@kiview kiview changed the title Support docker compose as docker CLI extension Add support for Compose V2 Aug 26, 2022
@kiview
Copy link
Member

kiview commented Aug 26, 2022

The WIP PR is #5608. We are still considering different approaches to implementing the support since Compose V2 contains breaking changes.

@eddumelendez
Copy link
Member

eddumelendez commented Jun 21, 2023

#5608 adds support to compose v2 which will be released in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants