SIGINT/SIGTERM ignored during startup phase & healthcheck wait in foreground up
维护者通常 1 天内回复
评估
这个 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
- Create a
docker-compose.ymlwith 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 小时
- 30 天内合并 PR
- 17
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Mcrich23/Container-Compose 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
Mcrich23/Container-Compose#197 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
Mcrich23/Container-Compose#137 · 1 条评论 ·
维护者通常 1 天内回复
-
DecodingError.typeMismatch in build args可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 3/5 1-2 天 新手友好度 25/100
Mcrich23/Container-Compose#136 · 1 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
Containers launch sequentially - can they be launched concurrently?可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
Mcrich23/Container-Compose#128 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
Pull subcommand未关闭
难度 3/5 1-2 天 新手友好度 52/100
Mcrich23/Container-Compose#121 · 1 条评论 ·
维护者通常 1 天内回复
查看 Mcrich23/Container-Compose 的全部 Issue
相似的 Issue
-
milestone-3
难度 2/5 1-3 小时 新手友好度 78/100
Harsha0912/recall#71 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
meshtastic/Meshtastic-Apple#3132 ·
维护者通常 1 天内回复
-
approved
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 66/100
MonitorControl/MonitorControl#1949 ·
-
Bug
难度 1/5 1 小时以内 新手友好度 91/100