force-recreate 会先停掉旧容器(status=exited),若此时健康检查 轮询到旧容器的 exited 状态,会误判新容器失败并触发不必要的回滚。 修复方式: - 新增 getNewestContainerId() 在 compose up 后立即拿到新容器 ID - waitForServiceStable 接受 containerId 参数,通过 docker inspect 精确轮询新容器状态,完全隔离旧容器的干扰 - 退化路径(containerId=null)保留原有服务名轮询逻辑 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src/main | ||
| pom.xml | ||