[FEATURE] Report all missing required environment variables in a single error
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
調査の方向性
Start by tracing environment variable interpolation and required-variable validation in Docker Compose; the issue names no source files or tests. Check how docker compose config and docker compose up handle multiple missing variables, then identify the relevant tests. Done means both commands report all missing required variables together and start no containers when validation fails.
索引モデルが issue の本文から書いたものです。
説明
Description
When a Compose file contains multiple required environment variables, Docker Compose stops at the first missing variable during interpolation.
This means users must repeatedly run docker compose up, fix one variable, and run the command again to discover the next missing variable.
It would be helpful to collect all missing required variables and report them together before exiting.
Example
services:
app:
image: alpine:latest
environment:
DB_HOST: ${DB_HOST:?DB_HOST is required}
DB_PASSWORD: ${DB_PASSWORD:?DB_PASSWORD is required}
API_KEY: ${API_KEY:?API_KEY is required}
With all three variables unset, run:
docker compose up
Current behavior
Compose exits after reporting a single missing required variable. The remaining missing variables are discovered only on subsequent attempts.
Expected behavior
Compose validates all required variables and returns one consolidated error, for example:
Configuration validation failed:
- DB_HOST: DB_HOST is required
- DB_PASSWORD: DB_PASSWORD is required
- API_KEY: API_KEY is required
No containers should be started when validation fails.
This behavior would be useful for both docker compose up and docker compose config.
Benefits
- Reduces repeated configuration attempts.
- Makes initial setup easier for projects with many required variables.
- Provides clearer feedback in CI/CD logs.
Docker Compose version
PS C:\Users\<user>> docker compose version
Docker Compose version v5.3.1
PS C:\Users\<user>> docker version
Client:
Version: 29.6.2-rd
API version: 1.55
Go version: go1.26.4
Git commit: ede120b
Built: Fri Jul 17 17:00:40 2026
OS/Arch: windows/amd64
Context: default
- 主要言語
- Go
- スター
- 38.9k
- フォーク
- 6k
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 81
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/compose のほかの issue
-
[BUG] `docker compose port` prints `:0` (exit 0) for a port the image exposes but the service does not publish対応中かも @ndeloof が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
docker/compose#14435 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] deploy.restart_policy without condition drops the restart policy再び着手できるかも @akshat-lakhera が 25 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
docker/compose#14383 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] up: an optional (required: false) service_healthy dependent is not started when a required dependent shares the failing wait対応中かも @ndeloof が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
docker/compose#14507 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Negative replica count in scale flags (docker compose scale / --scale) is accepted without validation対応中かも @arsalanyavari が 8 日前に担当しました。 オープンkind/bug status/approved
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
IBM-Cloud/terraform-provider-ibm#7115 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
fluxcd/notification-controller#1441 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
volcengine/volcengine-go-sdk#163 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
OneBusAway/maglev#2145 ·
メンテナーはふだん 2 日以内に返信
-
priority/medium status/ready type/chore
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
discobox-ai/discobox#1357 ·
メンテナーはふだん 1 日以内に返信