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] Network aliases from multiple docker-compose files do not get merged #9981
Comments
Need to remove https://github.com/compose-spec/compose-go/blob/master/loader/merge.go#L333 |
an explicit test case has been included in compose-go to confirm this (wrong?) expectation. I'll dig into code history to better understand this decision |
I also have this issue. when it will be resolved? |
The whole merge logic has been introduced at once by docker/cli@1872bd8#diff-3656731ab09fddb23d9fe7c01e366ecd80e82d8dce9720f90583a887064f18b9, which makes it hard to understand the reason this special handling for aliases was introduced. Considering this behavior is not implemented by Compose v1, I guess we can assume we should better adopt backward compatibility, and investigate ability for an override file to unset values (compose-spec/compose-spec#284) |
Hi @ndeloof, |
not released yet. Probably in next release v2.14.2. Check the changelog |
Description
I have network aliases for the same service in multiple docker-compose files; In
docker-compose
(v1) all aliases get merged, indocker compose
(v2) only the aliases from additional files are applied.Steps To Reproduce
docker-compose.yml
docker-compose.override.yml
Run
docker-compose config
with version1.29.2
Run
docker compose config
with versionv2.12.2
Compose Version
Docker Environment
Anything else?
Basically, this is a new issue for a problem, that has been closed without beeing fixed. See #8719
The text was updated successfully, but these errors were encountered: