Skip to content

fix: disable Ryuk reaper when cleanup.on is never#147

Merged
wankai123 merged 1 commit intomainfrom
fix/disable-ryuk-when-cleanup-never
Apr 16, 2026
Merged

fix: disable Ryuk reaper when cleanup.on is never#147
wankai123 merged 1 commit intomainfrom
fix/disable-ryuk-when-cleanup-never

Conversation

@wu-sheng
Copy link
Copy Markdown
Member

Summary

  • After migrating to testcontainers-go (feat: migrate to testcontainers-go v0.42.0 and upgrade dependencies #146), the Ryuk reaper sidecar automatically removes all containers when the e2e process exits, making cleanup.on: never ineffective in compose mode
  • Fix: disable Ryuk by setting TESTCONTAINERS_RYUK_DISABLED=true before creating the compose stack when cleanup.on is configured as never

Test plan

  • Verified locally with a Docker Compose e2e config using cleanup.on: never — containers now survive after process exit
  • Verified Ryuk is no longer started when cleanup.on: never
  • Lint and unit tests pass (make lint && make test)

🤖 Generated with Claude Code

After migrating to testcontainers-go, the Ryuk reaper sidecar
automatically removes all containers when the e2e process exits,
which makes cleanup.on: never ineffective in compose mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@wu-sheng wu-sheng added this to the 1.4.0 milestone Apr 16, 2026
@wu-sheng wu-sheng added the bug Something isn't working label Apr 16, 2026
@wu-sheng wu-sheng requested a review from wankai123 April 16, 2026 07:11
@wankai123 wankai123 merged commit 0d91769 into main Apr 16, 2026
6 checks passed
@wankai123 wankai123 deleted the fix/disable-ryuk-when-cleanup-never branch April 16, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants