SIGINT/SIGTERM ignored during startup phase & healthcheck wait in foreground up

Aperta
#165 5 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@georgettica ci sta già lavorando.

Dal 2/11/2026.

  • #166 di @georgettica — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

When running container-compose up in the foreground (without -d), sending SIGINT (Ctrl+C / kill -2 $PID) or SIGTERM from an external process (e.g. CI runner, test script, wrapper task, or another shell) is ignored or
fails to stop the stack if the signal arrives while containers are starting up, pulling images, or waiting for healthchecks.

Additionally, in piped/redirected environments, output is block-buffered, so shutdown feedback (`Gracefully stopping...`) is not visible until the process exits.

Repro

  1. Create a docker-compose.yml with a service that takes time during startup (e.g., an image that needs to be pulled or has a 20s healthcheck):
services:
  web:
    image: redis:7-alpine
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 5s
      retries: 5
      start_period: 20s

and it doesnt listen to ctrl+c

Lingua principale
Swift
Stelle
1k
Fork
61
Merge medio
2g 4h
PR unite (30g)
17

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Mcrich23/Container-Compose

Tutte le issue di Mcrich23/Container-Compose

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.