-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[BUG] Regression: array items[0,1] must be unique starting from 2.24.1 #11371
Copy link
Copy link
Closed
compose-spec/compose-go
#533Labels
Description
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:
- docker-compose.yaml
version: "3.8"
services:
test:
image: ubuntu:latest
command: sleep infinity
volumes:
- ./src:/src- docker-compose.override.yaml
services:
test:
volumes:
- ./src:/srcWIth 2.23.3:
❯ dc version
Docker Compose version 2.23.3
❯ dc down -v
With 2.24.1:
❯ ./dc-2.24.1 version
Docker Compose version v2.24.1
❯ ./dc-2.24.1 down -v
validating /home/paolo/temp/dc-compose/docker-compose.override.yml: services.test.volumes array items[0,1] must be unique
Compose Version
Docker Compose version v2.24.1
Docker Environment
❯ docker info
Client:
Version: 24.0.7
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: 0.12.1
Path: /usr/lib/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: 2.23.3
Path: /usr/lib/docker/cli-plugins/docker-compose
Server:
Containers: 15
Running: 9
Paused: 0
Stopped: 6
Images: 141
Server Version: 24.0.7
Storage Driver: btrfs
Btrfs:
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 71909c1814c544ac47ab91d2e8b84718e517bb99.m
runc version:
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.6.11-2-lts
Operating System: Arch Linux
OSType: linux
Architecture: x86_64
CPUs: 24
Total Memory: 30.49GiB
Name: paolo-cto-arch-wood
ID: ZRJM:NTZC:JCYV:OSU3:VB2H:N2CW:ZCLD:PCGW:JGT5:B2BR:445A:GEHV
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Anything else?
No response
Reactions are currently unavailable