Open YtvwlD opened 2 months ago
We were also getting this when including the same docker-compose file twice (our mistake). This had been working on prior docker compose versions but broke after upgrading to 2.26
A simplified example is:
docker-compose.our-service.yml
services:
our-service:
security_opt:
- label:type:container_runtime_t
COMPOSE_FILE='docker/docker-compose.our-service.yml:docker/docker-compose.our-service.yml'
Hello,
I'm getting the same issue from volume_from
on the latest version :
Client: Docker Engine - Community
Version: 27.0.1
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.15.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.28.1
Path: /usr/libexec/docker/cli-plugins/docker-compose
Description
I have a
docker-compose.yaml
:And I have a
docker-compose.override.yaml
which contains exactly the same content (yes, I know this is not a good idea).With Docker Compose v2.26.1, this fails with "validating docker-compose.override.yaml: services.traefik.security_opt array items[0,1] must be unique". With Docker Compose v2.20.2, this works.
Steps To Reproduce
docker-compose.yaml
anddocker-compose.override.yaml
with the same content as abovedocker compose up
Compose Version
On the system where it doesn't work:
$ docker compose version Docker Compose version v2.26.1 $ docker-compose version Command 'docker-compose' not found, but can be installed with: […]
On the system where it does work:
Docker Environment
On the system where it doesn't work:
On the system where it does work:
Anything else?
It might be related to #11371.