-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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] Regression: services security_opt array items[0,1] must be unique #11777
Comments
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
COMPOSE_FILE='docker/docker-compose.our-service.yml:docker/docker-compose.our-service.yml' |
Hello, I'm getting the same issue from 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 |
We are seeing this same problem upgrading from Reproducible example:
Execute:
This only happens on Edit: Maybe compose-spec/compose-go#678 is root cause? |
@scnewma It's exactly the problem I've met after I updated the newest docker version on linux. I must used a workaround by download the standalone docker-compose binary with v2.29.2 version and execute the compose comand by Hope for an update soon. |
This has been fixed by compose-spec/compose-go@d3fd7d9 |
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.
The text was updated successfully, but these errors were encountered: