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

オープン
#165 コメント 5 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@georgettica がすでに取り組んでいます。

2026年11月2日 から。

  • #166 @georgettica による — オープン

評価

この issue はまだ評価されていません。

説明

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

主要言語
Swift
スター
1k
フォーク
61
平均マージ
2日 4時間
マージ済み PR(30日)
17

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Mcrich23/Container-Compose のほかの issue

Mcrich23/Container-Compose の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。