[BUG] `mode` attribute in `configs` works but raises an unsupported warning
I maintainer di solito rispondono entro 1 giorno
@ndeloof ci sta già lavorando.
Dal 8/10/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
Direzione di ricerca
Start by reproducing the warning with the Compose file in the issue and inspect the code that validates or reports the mode attribute for configs; the issue does not name a source file or test. Compare the warning with the observed file permissions, then run the relevant Compose tests. Done means the warning accurately reflects the supported behavior while the requested mode continues to work.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
The latest version of compose raises the following warning when the mode attribute is provided under configs, even though it works as expected:
WARN[0000] service "test": configs.start.sh.mode: mode is not supported outside Swarm mode and will be ignored
- With mode:
test-1 | -rwx------ 1 root root 52 Oct 6 11:52 /start.sh
- Without mode:
test-1 | -r--r--r-- 1 root root 52 Oct 6 11:54 /start.sh
PoC:
services:
test:
image: alpine
command: sh /start.sh
configs:
- source: start.sh
target: /start.sh
mode: 0700
configs:
start.sh:
content: |
#!/usr/bin/env sh
ls -l /start.sh
tail -f /dev/null
Steps To Reproduce
- Create a compose file with the
configssection andmode - Start the container:
docker compose up - Observe the file permissions and the logged warning
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: 13
Running: 13
Paused: 0
Stopped: 0
Images: 61
Server Version: 29.8.2
Storage Driver: overlayfs
driver-type: io.containerd.snapshotter.v1
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 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:
apparmor
Profile: default
seccomp
Profile: builtin
cgroupns
Kernel Version: 7.0.0-38-generic
Operating System: Linux Mint 22.3
OSType: linux
Architecture: x86_64
CPUs: 22
Total Memory: 30.85GiB
Name: xxx
ID: xx-xxx-xxx-xxx-xxx
Docker Root Dir: /var/lib/docker
Debug Mode: false
Username: xxxx
Experimental: false
Insecure Registries:
127.0.0.0/8
::1/128
Live Restore Enabled: false
Default Address Pools:
Base: 172.16.0.0/12, Size: 24
Firewall Backend: iptables
EnableUserlandProxy: true
UserlandProxyPath: /usr/bin/docker-proxy
Anything else?
No response
- Lingua principale
- Go
- Stelle
- 38.4k
- Fork
- 5.9k
- Merge medio
- 2g 7h
- PR unite (30g)
- 60
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di docker/compose
-
Watch: exec modeForse già presa @glours l’ha presa oggi. Apertakind/feature
docker/compose#14326 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
kind/feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] `start -p <name>` treats an optional (`required: false`) dependency as requiredForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 22/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Warns about uid/gid, but with inline configs they do workForse già presa @ndeloof l’ha presa 5 giorni fa. Apertakind/bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
docker/compose#14283 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di docker/compose
Issue simili
-
unbounded value for n in `/v1/logs` can panic/OOMForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertasmall item
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
canonical/pebble#1127 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[schema-coverage] elasticstack_elasticsearch_synonym_set (data source)Forse già presa @github-actions l’ha presa oggi. Apertaacceptance-tests phase-coding schema-coverage testing triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
elastic/terraform-provider-elasticstack#5211 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 89/100
open-policy-agent/opa#9366 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
defect
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nats-io/nats-server#8752 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement needs-acceptance wg/router-models-inference-runtime
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vllm-project/semantic-router#5015 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno