[BUG] Warns about uid/gid, but with inline configs they do work
メンテナーはふだん 1 日以内に返信
@ndeloof がすでに取り組んでいます。
2026年10月8日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Go
- スター
- 38.4k
- フォーク
- 5.9k
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 67
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/compose のほかの issue
-
[BUG] `docker compose run` drops the anonymous volumes of a dependency it recreates対応中かも @htoyoda18 が今日担当しました。 オープンkind/bug status/0-triage
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
kind/feature status/0-triage
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
[BUG] <title>オープンkind/bug status/0-triage
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
メンテナーはふだん 1 日以内に返信
-
Epic: Move service selection into the backend API instead of pre-filtering the project in the CLIオープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
メンテナーはふだん 1 日以内に返信
-
Watch: exec mode対応中かも @glours が 5 日前に担当しました。 オープンkind/feature
docker/compose#14326 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
agent-butler-finding chore
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
jordansmall/spindrift#5575 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
JakeChampion/lang#12684 ·
メンテナーはふだん 1 日以内に返信
-
goose sub-agent runs are never indexed: blame finds no session for any file a `delegate` child wroteオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
C-bug O-community X-blathers-triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cockroachdb/cockroach#176150 · コメント 1 件 ·
メンテナーはふだん 12 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
wakatime/wakatime-cli#1649 ·
メンテナーはふだん 1 日以内に返信