testcontainers / testcontainers/testcontainers-java
Expose a way to manually inspect and terminate reuse containers
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
Something similar to being able to
- (optional) add "day of creation" label, which makes containers reusable within same day only
- docker ps --filter "label=org.testcontainers=true" --filter "label=mylabel=abc"
- inspect labels and other properties
- selectively terminate containers
This could currently be done by running docker commands from shell script or similar, but testcontainers have various docker discovery strategies which don't seem to be currently exposed, manual command may fail to execute or even connect to a different docker daemon.
Also adding "reuse=true" when container was created with reuse flag could be a good idea to ease going through zombies, and maybe to completely separate reuse and non-reuse containers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the exposed Docker discovery strategies and the existing reuse-container handling. Compare the requested docker ps filtering, label inspection, selective termination, and reuse labels against the current API. Done means users can inspect and manage reusable containers through the same Docker connection used by Testcontainers, with reuse and non-reuse containers distinguishable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- devops, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100