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

Đang mở
#165 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@georgettica đang làm issue này rồi.

Từ ngày 2/11/2026.

  • #166 của @georgettica — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Swift
Star
1k
Fork
61
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Mcrich23/Container-Compose

Tất cả issue của Mcrich23/Container-Compose

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.