[BUG] A start failure in one service aborts the start of unrelated services (unreleased regression)
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 57/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Go
- Étoiles
- 38.4k
- Forks
- 5.9k
- Merge moyen
- 1 j 19 h
- PR mergées (30 j)
- 66
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de docker/compose
-
[BUG] deploy.restart_policy without condition drops the restart policyPeut-être pris @akshat-lakhera l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
docker/compose#14383 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG] down -v removes a named volume owned by another projectPeut-être pris @htoyoda18 l’a pris il y a 3 jours. Ouvertekind/bug
Difficulté 3/5 1-2 jours Accessibilité débutants 73/100
Les mainteneurs répondent en général sous 1 jour
-
Support OSC 7501 progressOuvertekind/feature
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
docker/compose#14365 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
kind/feature
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
docker/compose#14356 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Epic: Move service selection into the backend API instead of pre-filtering the project in the CLIOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de docker/compose
Issues similaires
-
Project submission:Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
slavakurilyak/awesome-ai-agents#845 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
JakeChampion/lang#13132 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
Azure/azure-storage-fuse#2429 ·
Les mainteneurs répondent en général sous 1 jour