[BUG] `mode` attribute in `configs` works but raises an unsupported warning
Maintainer thường phản hồi trong vòng 1 ngày
@ndeloof đang làm issue này rồi.
Từ ngày 8/10/2026.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Go
- Star
- 38.4k
- Fork
- 5.9k
- Merge trung bình
- 2 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 47
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của docker/compose
-
kind/feature
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] `start -p <name>` treats an optional (`required: false`) dependency as requiredCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 22/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] docker compose run with `pull_policy: always` has a ruined progress barCó thể đã có người làm @ndeloof đã nhận 6 ngày trước. Đang mởkind/bug
docker/compose#14292 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] pre_start no longer inherits its parent environmentCó thể đã có người làm @ndeloof đã nhận 5 ngày trước. Đang mởkind/bug
docker/compose#14287 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Build fails with fs.read entitlement error when dockerfile is outside the build context (buildx >= 0.37.2)Có thể đã có người làm @locker95 đã nhận 7 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
docker/compose#14285 · 7 bình luận · 13 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của docker/compose
Issue tương tự
-
darwin zsh
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
carapace-sh/carapace-bin#3846 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
appplication - is a typo?Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
golang-app/ecommerce#179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Simulator process crashes (nil pointer panic) when the dataset returns an errorCó thể đã có người làm @EugeneVon đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
llm-d/llm-d-inference-sim#772 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
refactor: decode numchildren with a lenient int type instead of a hand-written xProp.UnmarshalXMLĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
crazy-goat/xdbg#125 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
150 points ci complexity:medium drips-wave help wanted medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
sorotrail/SoroBeacon#449 ·
Maintainer thường phản hồi trong vòng 1 ngày