fix: 修复 Docker 环境中的僵尸进程问题 (#355)
在 Docker 环境中,当应用作为 PID 1 运行时,无法自动回收子进程。 go-rod 启动的 Chrome 浏览器及其子进程在关闭时会变成僵尸进程。 解决方案: - 在 docker-compose.yml 中添加 init: true 配置 - Docker 会使用 tini/dumb-init 作为 init 进程 - init 进程会自动回收僵尸进程 此修复方案已由 issue 报告者验证有效。 Fixes #351 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ services:
|
||||
# image: crpi-hocnvtkomt7w9v8t.cn-beijing.personal.cr.aliyuncs.com/xpzouying/xiaohongshu-mcp
|
||||
container_name: xiaohongshu-mcp
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
tty: true
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
|
||||
Reference in New Issue
Block a user