GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — SIGINT/SIGTERM ignored during startup phase & healthcheck wait in foreground up · Issue #165 · Mcrich23/Container-Compose

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

New issue
Copy link
New issue
Copy link
Open
#166
Open
SIGINT/SIGTERM ignored during startup phase & healthcheck wait in foreground up#165
#166
Copy link
Assignees
georgettica

Description

@georgettica
georgettica
opened on Nov 2, 2026
Issue body actions

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

Activity

  1. georgettica
    closed this as completedon Nov 2, 2026
  2. georgettica commented on Nov 2, 2026

    @georgettica
    georgettica
    on Nov 2, 2026
    Author
    More actions

    need to find the case that works

  3. Mcrich23 commented on Nov 2, 2026

    @Mcrich23
    Mcrich23
    on Nov 2, 2026
    Owner
    More actions

    Yes, sending SIGTERM to container-compose when running up has never been supported since I have been unable to identify how to track it in swift and manage a graceful shutdown. Apologies for the lack of documentation regarding this. The current way is just SIGTERM and then container-compose down.

    If you know of a way, I would love to get a PR up and then merged for this.

  4. georgettica commented on Nov 2, 2026

    @georgettica
    georgettica
    on Nov 2, 2026
    Author
    More actions

    amazing! I will test locally, see it works and create a PR

  5. georgettica commented on Nov 2, 2026

    @georgettica
    georgettica
    on Nov 2, 2026
    Author
    More actions

    I just tried to simplify the setup to redact my stuff. so I closed as it didnt reproduce (uploaded and then tried what I wrote)

  6. georgettica
    reopened this on Nov 2, 2026
  7. georgettica commented on Nov 2, 2026

    @georgettica
    georgettica
    on Nov 2, 2026
    Author
    More actions

    can you assign it to me?

    Reacted by Morris Richman
    Reacted by Ron Green
  8. Mcrich23
    assigned
    Mcrich23
    and
    georgettica
    and unassigned
    Mcrich23
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @georgettica
    georgettica

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.