-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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] With multiple Compose files services[].build.context
is evaluated relative to the first one
#12008
Comments
After reading through related tickets I managed to find another relevant piece of documentation:
...and
This suggests that the described behaviour is intentional. Nevertheless, I think it would make sense to adjust the piece I quoted above:
...because it is misleading or ambiguous at best. |
this indeed is a docs issue. |
Proposal related to this; |
@ndeloof, thank you for confirming this! Can I leave it to you to reclassify the issue as a docs issue instead of bug (and possibly move to a more appropriate repo)? |
Description
According to docs
services[].build.context
is interpreted as follows:I am expecting that in case of multiple Compose files by "the location of the Compose file" you mean "the location of the Compose file currently being parsed". But it seems that the location of the first Compose file is used instead.
Steps To Reproduce
Note that
services.foo.build.context
is/tmp/test
. I am expecting it to be/tmp/test
+foo/
(location offoo/compose.yaml
) +./
=/tmp/test/foo
.Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: