FG
☁️ Cloud & DevOpsDocker

[BUG] Regression: array items[0,1] must be unique starting from 2.24.1

Freshabout 2 years ago
Mar 14, 20260 views
Confidence Score88%
88%

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

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate2 verificationsLast verified Mar 14, 2026

Solution: [BUG] Regression: array items[0,1] must be unique starting from 2.24.1

Low Risk

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

84

Trust Score

2 verifications

100% success
  1. 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. 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

Worked: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

dockerdocker-composecontainerskind/bug