testcontainers / testcontainers/testcontainers-java

Expose a way to manually inspect and terminate reuse containers

Open
#3,569 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.