testcontainers / testcontainers/testcontainers-java
DockerComposeContainer - how to provide renew-anon-volumes flag?
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
I'm trying to use the following 2 flags with DockerComposeContainer class:
docker-compose up \
--renew-anon-volumes \
--remove-orphans
container.withOptions(String... options) adds them before up argument, causing it to fail.
How these flags should be provided to docker-compose?
@Container
public DockerComposeContainer container =
new DockerComposeContainer(configurationPath)
.withTailChildContainers(true)
.withLocalCompose(true);
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 at DockerComposeContainer and its withOptions(String... options) entry point, then trace how options are assembled for the docker-compose up command. Reproduce the failure with --renew-anon-volumes and --remove-orphans, and confirm that the flags are accepted in the correct position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, java
- Domain
- devops, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100