Closed paolomainardi closed 9 months ago
I don't mean to be a pain here, but I'm seeing similar on v2.25.0. Figured best to post on this thread versus a new issue as it seems related to my newb self?
"validating /home/docker/docker-compose.override.yml: services.scrutinyanalogj.devices array items[0,11] must be unique"
scrutinyanalogj:
ports:
- '86:80'
- '8886:8080'
volumes:
- '/home/docker/scrutinyanalogj:/opt/scrutiny/config'
- '/home/docker/influxdb2:/opt/scrutiny/influxdb'
- '/run/udev:/run/udev:ro'
restart: always
logging:
options:
max-size: 1g
container_name: scrutinyanalogj
environment:
- PUID=1000
- PGID=996
- TZ=America/New_York
devices:
- '/dev/nvme0n1p1:/dev/nvme0'
- '/dev/nvme1n1p1:/dev/nvme1'
- '/dev/nvme2n1p1:/dev/nvme2'
- '/dev/sda:/dev/sda'
- '/dev/sdb:/dev/sdb'
- '/dev/sdc:/dev/sdc'
- '/dev/sdd:/dev/sdd'
- '/dev/sde:/dev/sde'
- '/dev/sdf:/dev/sdf'
- '/dev/sdg:/dev/sdg'
- '/dev/sdh:/dev/sdh'
cap_add:
- SYS_ADMIN
- SYS_RAWIO
image: ghcr.io/analogj/scrutiny:master-omnibus
networks:
vpnsys_net:
ipv4_address: '172.22.0.109'
@derekcentrico tried to reproduce, works for me:
$ docker compose version
Docker Compose version v2.24.6-desktop.1
$ docker compose config
services:
test:
devices:
- /dev/nvme0n1p1:/dev/nvme0
- /dev/nvme1n1p1:/dev/nvme1
- /dev/nvme2n1p1:/dev/nvme2
- /dev/sda:/dev/sda
- /dev/sdb:/dev/sdb
- /dev/sdc:/dev/sdc
- /dev/sdd:/dev/sdd
- /dev/sde:/dev/sde
- /dev/sdf:/dev/sdf
- /dev/sdg:/dev/sdg
- /dev/sdh:/dev/sdh
@derekcentrico tried to reproduce, works for me:
$ docker compose version Docker Compose version v2.24.6-desktop.1 $ docker compose config services: test: devices: - /dev/nvme0n1p1:/dev/nvme0 - /dev/nvme1n1p1:/dev/nvme1 - /dev/nvme2n1p1:/dev/nvme2 - /dev/sda:/dev/sda - /dev/sdb:/dev/sdb - /dev/sdc:/dev/sdc - /dev/sdd:/dev/sdd - /dev/sde:/dev/sde - /dev/sdf:/dev/sdf - /dev/sdg:/dev/sdg - /dev/sdh:/dev/sdh
Thanks for checking. You led me down the ultra newb path of a reboot. I don't understand how that mattered for anything as all was fine previously+ had just rebooted after an apt upgrade but hey it works now!
I recently had the profiles array items[0,1] must be unique
and updating to 4.28.0 fixed this error for me
however, after that I got an error service "myservice" can't be used with 'extends' as it declare 'depends_on'
so I extracted a base service definitions and defined multiple target services based on it, but after that the compose build
command is trapped in an infinite resolve image config for docker.io/docker/dockerfile:1
Here is a minimal configuration where this happens:
version: '3'
services:
service-base:
build: .
service-test:
extends:
service: service-base
build:
target: .
I'm getting this error also for security_opt
. I'm on 2.26.1.
I have the following in both docker-compose.yaml
and in docker-compose.override.yaml
:
services:
traefik:
security_opt:
- label:type:container_runtime_t
Is this expected or is this a bug? (This bug or a new one? :D)
@YtvwlD please open a new bug for this
I still experiment the issue with:
docker compose version
Docker Compose version v2.29.6
error message:
validating /home/$USER/Projects/docker-compose.yml: services.foo.extra_hosts array items[0,1] must be unique
Should have been resolved?
@GuillaumeCisco sounds like a separate, while comparable issue related to extra_hosts. Please fill a new issue so we can investigate
Thanks @ndeloof ,w ill do right away ;)
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:
WIth 2.23.3:
With 2.24.1:
Compose Version
Docker Environment
Anything else?
No response