-
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
[BUG] --profile
breaking changes
#10993
Comments
ignoring the dependency was a bug, that we fixed. But as many did like you relied on this, we introduced |
Closing as a duplicate for compose-spec/compose-spec#274 |
OK, thanks :) But talking about this |
indeed, I missed the "logs" issue as a sub-issue here :) |
While skimming through this issue and related PR, I came up with these two questions:
I'm trying to use a single instance of database as required dependency of multiple Compose projects. My idea was to merge the database's Compose file (via |
I'm gonna tag on to this thread for clarification reasons. In previous history, i.e. I could have a service which depended on another for runtime reasons, but they were in different profiles to select which images to build at particular times etc. However, with the latest docker compose, it appears that depends_on produces the "invalid compose project" command line error for For example:
If i just want to select images to be pulled, or built, I get errors where previous docker compose versions i did not (i.e. 2.3.3) $ docker compose --profile pull pull
service "cli" depends on undefined service "web": invalid compose project
$ docker compose --profile cli build
service "cli" depends on undefined service "web": invalid compose project
$ docker compose version
Docker Compose version v2.27.0 If this is unintended and i need to open a separate issue just lmk please. |
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. |
Description
Imagine a stack like this:
In previous versions of
docker compose
I could rundocker compose up
and it would start thedb
container without any problems. Recently I upgradeddocker
and was really surprised that it didn't work anymore. Here is the output of `docker compose up':This is a devastating change for many compose stacks, and wasn't even mentioned in the changelog :(
There is also another surprising behaviour when running
docker compose logs db
reports:Steps To Reproduce
docker compose up
with the config above.Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: