-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 not working with multiple configuration files #9294
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as not stale anymore due to the recent activity. |
I tried again with the current version. Still broken, but the error behaviour has changed.
|
For this error:
A fix will be in the next Compose version (about to be released). It's possible to workaround it on older Compose versions by single-quoting the value so that no interpolation happens:
(NOTE: This is independent from the original issue you reported.) |
I'll fix the interpolation problem and see if the original problem remains. Thanks for tip @milas . (Took me a while to realise we actually did have that value in a dusty corner of an environment file!) |
After fixing the enviroment variable, looking hopeful. Working with my initial tests. Mac Docker Desktop version 4.12.0 |
I no longer see the problems I originally reported. I can enable "Use Docker Compose V2" and work across multiple configuration files. |
Description
I upgraded from Mac Docker Desktop 4.5.0 to 4.6.0 and some of my docker workflows broke. In a situation with services split across two configuration files and services in the second depending on services in the first, I now getting an error saying
no such service: some-service-in-first
.Steps to reproduce the issue:
docker-compose -f file1 -f file2 run service-in-file2
Describe the results you received:
Error
No such service: some-service-in-first
. The actual service listed in the error varies.Describe the results you expected:
Error free operation.
Additional information you deem important (e.g. issue happens only occasionally):
I tried unchecking "Use Docker Compose V2" in the preferences and it fixed the error.
The service listed in the
No such service
does vary.The configuration files are using
version: '2.3'
. I am not sure that is significant, but thought it worth mentioning.Output of
docker compose version
:Output of
docker info
:Additional environment details:
Working with:
Mac Docker Desktop version 4.5.0.
Compose: v2.2.3
Problems with:
Mac Docker Desktop version 4.6.0.
Compose: v2.3.3
The text was updated successfully, but these errors were encountered: