testcontainers / testcontainers/testcontainers-java

DockerComposeContainer and reuse

Open
#3,158 3 comments 13 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

Would it be possible to have a reuse option in DockerComposeContainer so that the containers are not stopped between runs?

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 with DockerComposeContainer and trace how its compose services are stopped between runs. Inspect the relevant lifecycle tests, if present, and define the reuse option's expected behavior from the issue. Done means callers can enable reuse and the containers remain running between test runs without changing the default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, java
Domain
devops, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.