[BUG] A start failure in one service aborts the start of unrelated services (unreleased regression)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 57/100
調査の方向性
Start by tracing the Compose start phase and the shared context cancellation described in the issue, then compare that flow with v5.6.0. Reproduce with the provided compose.yaml and commands; inspect why a failing web start aborts work for unrelated services such as api and db. Done means the command still reports the web failure while unrelated starts and pre_start work already in progress can finish.
索引モデルが issue の本文から書いたものです。
説明
Description
On main, when one node in the start phase fails (port conflict, failing hook, unhealthy required dependency, --wait-timeout), the failure cancels the context shared by the whole start phase. Start, health wait and pre_start work still in flight for unrelated services is aborted too.
Current behavior (main, 20ca59586): a service whose configuration changed is recreated (old container removed) but never started. It is left in created state, so a service that was running before the command ends up stopped. No message is printed for it, and its Waiting progress line never completes. A pre_start hook container that is still running is killed.
Expected behavior (as in v5.6.0): the command still fails because of the failing service, but a start already in progress for an unrelated service runs to completion.
This does not happen with v5.6.0, so it looks like an unreleased regression.
Steps To Reproduce
- With this
compose.yaml:name: n1repro services: db: image: alpine:3.20 command: sleep infinity healthcheck: { test: ["CMD", "true"], interval: 2s } api: image: alpine:3.20 command: sleep infinity environment: { VERSION: "${VERSION:-1}" } depends_on: { db: { condition: service_healthy } } web: image: nginx:alpine ports: ["18089:80"] - Start everything:
VERSION=1 docker compose up -d --wait - Stop
weband take its port:docker compose stop web && docker run -d --name blocker -p 18089:80 nginx:alpine - Change
api's configuration and run up again:VERSION=2 docker compose up -d(fails onweb, as expected) - Check
api:docker inspect -f '{{.State.Status}}' n1repro-api-1- v5.6.0:
running, recreated withVERSION=2(2/2 runs) - main 20ca59586:
created(2/2 runs). The output ends withContainer n1repro-db-1 Waiting, and nothing follows fordborapi.
- v5.6.0:
Compose Version
Docker Compose version dev # built from main at 20ca59586 (bad)
Docker Compose version dev # built from v5.6.0 (good)
Docker Environment
Server Version: 29.1.3
Operating System: Docker Desktop
OSType: linux
Architecture: arch64
Kernel Version: 6.12.54-linuxkit
Storage Driver: overlayfs
Anything else?
No response
- 主要言語
- Go
- スター
- 38.5k
- フォーク
- 5.9k
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 63
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/compose のほかの issue
-
[BUG] deploy.restart_policy without condition drops the restart policy対応中かも @akshat-lakhera が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
docker/compose#14383 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
kind/bug status/0-triage
難易度 3/5 1〜2日 初心者へのやさしさ 56/100
docker/compose#14386 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] `depends_on` health/completion waits always sleep 500ms before the first check対応中かも @htoyoda18 が 2 日前に担当しました。 オープンkind/bug status/0-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
[BUG] down -v removes a named volume owned by another project対応中かも @htoyoda18 が 5 日前に担当しました。 オープンkind/bug
難易度 3/5 1〜2日 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
kind/feature
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
docker/compose#14365 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area/frontend/library-panels automated-triage type/bug type/ux
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
microsoft/azure-linux-image-tools#954 ·
メンテナーはふだん 1 日以内に返信
-
panic "time: missing Location in call to Time.In" on MySQL via aws_rds since v0.8.0対応中かも @tylertechgraves が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
open-policy-agent/opa-control-plane#452 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[bug bash] Actor logs are controlled by Kubernetes RBAC on the pool namespace, not atespace rolesオープンarea/cli area/security bug-bash kind/docs
難易度 1/5 1〜3時間 初心者へのやさしさ 80/100
agent-substrate/substrate#3242 ·
メンテナーはふだん 1 日以内に返信