[BUG] Warns about uid/gid, but with inline configs they do work
Los mantenedores suelen responder en 1 día
@ndeloof ya está trabajando en esto.
Desde el 8/10/2026.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
Línea de trabajo
Start by reproducing the warning with the supplied compose.yaml and docker compose run command, then trace Compose's validation of configs uid/gid for inline content outside Swarm mode. Add a regression test covering this case and verify that valid inline uid/gid values no longer produce the warning while the command still reports the expected ownership.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Compose emits lines like these:
WARN[0000] service "<service name>": configs.<config name>.<uid/gid>: <uid/gid> is not supported outside Swarm mode and will be ignored
However, with inline configs uid and gid both work regardless of Swarm mode.
Steps To Reproduce
- While Swarm is inactive, create a
compose.yamlwith this content:services: compose-bug: image: alpine:latest network_mode: none configs: - { source: some-config, target: /some-config, uid: '1234', gid: '5678' } command: ls -aFl /some-config configs: some-config: content: | placeholder docker compose run --rm compose-bug- Observe the output with correct UID/GID.
Compose Version
Docker Compose version v5.6.0
Docker Environment
Client: Docker Engine - Community
Version: 29.8.2
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.37.1
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v5.6.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 11
Running: 10
Paused: 0
Stopped: 1
Images: 28
Server Version: 29.8.2
Storage Driver: overlayfs
driver-type: io.containerd.snapshotter.v1
Logging Driver: local
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 splunk syslog
CDI spec directories:
/etc/cdi
/var/run/cdi
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: ee2735368117d2eb259779949d5e75cdafec9761
runc version: v1.5.1-0-g8f2685a4
init version: de40ad0
Security Options:
seccomp
Profile: builtin
cgroupns
no-new-privileges
Kernel Version: 6.18.40.1-microsoft-standard-WSL2
Operating System: Ubuntu 24.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.59GiB
Name: geth-desktop
ID: 5814c356-970f-4d80-8dfa-4bbe4da79f33
Docker Root Dir: /var/lib/docker
Debug Mode: false
Username: gethdeeo
Experimental: false
Insecure Registries:
127.0.0.0/8
::1/128
Live Restore Enabled: false
Default Address Pools:
Base: 172.25.0.0/16, Size: 24
Firewall Backend: iptables
EnableUserlandProxy: true
UserlandProxyPath: /usr/bin/docker-proxy
Anything else?
No response
- Lenguaje dominante
- Go
- Estrellas
- 38.4k
- Forks
- 5.9k
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 60
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de docker/compose
-
Watch: exec modePosiblemente ocupada @glours la tomó hace 1 día. Abiertokind/feature
docker/compose#14326 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
kind/feature
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
-
[BUG] `start -p <name>` treats an optional (`required: false`) dependency as requiredQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 22/100
Los mantenedores suelen responder en 1 día
-
[BUG] `mode` attribute in `configs` works but raises an unsupported warningPosiblemente ocupada @ndeloof la tomó hace 5 días. Abiertokind/bug
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
docker/compose#14288 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
Todos los issues de docker/compose
Issues similares
-
Action Required: Fix Renovate ConfigurationPosiblemente ocupada @thompson-tomo la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
open-telemetry/opentelemetry-collector#16170 ·
Los mantenedores suelen responder en 1 día
-
automation awf compiler specifications
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
state:triage-needed
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
puppe1990/amarra-cais#342 ·
Los mantenedores suelen responder en 1 día
-
replay: a run cancelled during environment setup is logged as an ERROR (Instrument drops the cancellation)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día