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

ContainerLaunchException with Docker Compose V2 #200

Closed
cuong-dang opened this issue Oct 28, 2021 · 9 comments · Fixed by #260
Closed

ContainerLaunchException with Docker Compose V2 #200

cuong-dang opened this issue Oct 28, 2021 · 9 comments · Fixed by #260

Comments

@cuong-dang
Copy link

I encountered the following error for sbt test.

org.testcontainers.containers.ContainerLaunchException: Local Docker Compose exited abnormally with code 1 whilst running command: up -d

Solved by unchecking the option Use Docker Compose V2 in Docker General settings.

@drewboardman
Copy link

I'm also seeing this issue, but downgrading the version of docker-compose didn't fix the problem.

@hosnimed
Copy link

hosnimed commented Mar 2, 2022

Same problem for me despite downgrading docker-compose version from V3 -> V2.
It succeeds in local test with sbt, but needs to do the docker compose manually before the first launch.
The problem remains in Jenkins CI, any suggestions please?

@necosta
Copy link
Contributor

necosta commented Apr 26, 2022

I believe the issue has been solved with the above change. Please review.

@pan3793
Copy link
Contributor

pan3793 commented Apr 27, 2022

@dimafeng Do you have a plan to release 0.40.7?

@dimafeng
Copy link
Collaborator

Sorry for the delay. Just released

@pan3793
Copy link
Contributor

pan3793 commented Aug 24, 2023

testcontainers/testcontainers-java#5608 added support for compose v2 with ComposeContainer, which is available in testcontainers-java:1.19.0, @dimafeng do you have time to make a release for this project?

@dimafeng
Copy link
Collaborator

@pan3793 I can take a look this weekend. If you happen to have some time to submit a PR earlier, I'd really appreciate it.

@pan3793
Copy link
Contributor

pan3793 commented Aug 24, 2023

@dimafeng Thanks, not too urgent on my side, I temporarily created a docker-compose script to simulate the V1 compose as a workaround, it works well for a while.

~/bin$ cat docker-compose
#/usr/bin/env bash
docker compose $@

@dimafeng
Copy link
Collaborator

dimafeng commented Aug 28, 2023

Sorry, the version upgrade didn't go smoothly #258. I need somebody to figure out the problem.

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

Successfully merging a pull request may close this issue.

6 participants