[BUG] Regression: array items[0,1] must be unique starting from 2.24.1
Problem
Description As per the subject, starting from 2.24.1, I am encountering this issue when there are overrides. Steps To Reproduce Create 2 files: 1. docker-compose.yaml [code block] 1. docker-compose.override.yaml [code block] WIth 2.23.3: [code block] With 2.24.1: [code block] Compose Version [code block] Docker Environment [code block] Anything else? _No response_
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: [BUG] Regression: array items[0,1] must be unique starting from 2.24.1
Thank you for getting back to me so promptly, @ndeloof. In my case, there seems to be no valid reason for the issue I'm facing. It appears to be a chain of docker-compose files where the last one is adding the same volumes again. Unfortunately, I cannot modify it as the base docker-compose files are managed by a custom framework. In version <= 2.23, errors were ignored or overwritten silently. Ho
Trust Score
2 verifications
- 1
Thank you for getting back to me so promptly, @ndeloof. In my case, there seems
Thank you for getting back to me so promptly, @ndeloof. In my case, there seems to be no valid reason for the issue I'm facing. It appears to be a chain of docker-compose files where the last one is adding the same volumes again. Unfortunately, I cannot modify it as the base docker-compose files are managed by a custom framework.
- 2
In version <= 2.23, errors were ignored or overwritten silently. However, this i
In version <= 2.23, errors were ignored or overwritten silently. However, this is no longer the case, resulting in a breaking change.
Validation
Resolved in docker/compose GitHub issue #11371. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep