-
-
Notifications
You must be signed in to change notification settings - Fork 515
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
Docker Compose V2: wait strategy cannot be applied: service not found #374
Comments
Hey @artamonovkirill, thanks for opening this issue. Would you mind adding a scenario (code/snippet/project) where we could reproduce this issue? Thanks in advance! |
Hi, @mdelapenya , as mentioned - it's for the TestDockerComposeWithWaitForService from this repo. I've added the link to my first comment, too. I'll try to fork the repo and enable running the tests on MacOS later today (if GitHub actions support Docker for Mac). |
I'll give a try once I have certain bandwidth, thanks for the report! |
Created #377 Running tests on a Mac will be a bit trickier:
|
Caused by docker/for-mac#6035, it's actually a valid Docker Compose V2 behavior, see e.g. docker/compose#229 |
@mdelapenya updated the issue description (since it's not just Mac or Windows-specific, but rather Docker Compose V2 related). |
Unfortunately, this is not the full fix for the issue: short-running containers e.g. initialisation of some sort and wait strategy like To reproduce:
The fix involves adding Line 183 in 097f9af
Could someone please reopen the issue? |
Describe the bug
While running with Docker Compose V2, compose tests with wait strategies like TestDockerComposeWithWaitForService from this repository:
To Reproduce
Either:
docker-compose
todocker compose
, see the diffExpected behavior
Container startup is awaited.
docker info
Additional Information:
This is caused by a breaking change in Docker Compose V2.
I tried installing Docker Compose V2 on
ubuntu-latest
nodes in GitHub Actions following this instruction, butdocker-compose
was still V1.Workaround
Prefix your compose
up
command with the--compatibility
flag.The text was updated successfully, but these errors were encountered: