Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DockerComposeContainer: add 'removeVolumes' parameter #7009

Conversation

DanWiseProgramming
Copy link
Contributor

@DanWiseProgramming DanWiseProgramming commented May 3, 2023

Adds a removeVolumes parameter which can be controlled through the withRemoveVolumes() method.
This parameter defaults to true (as per the original ticket #7008 and to retain backward-compatibility) but can be set to false.

I have also written tests to ensure that this parameter works as intended.

Closes #7008

@eddumelendez eddumelendez changed the title [#7008] DockerComposeContainer: add 'removeVolumes' parameter DockerComposeContainer: add 'removeVolumes' parameter May 12, 2023
@eddumelendez eddumelendez merged commit 5b9c639 into testcontainers:main May 12, 2023
85 checks passed
@eddumelendez
Copy link
Member

Thanks for your contribution, @DanWiseProgramming !

@DanWiseProgramming
Copy link
Contributor Author

Thanks for the review and changes @eddumelendez !
This change I realised only after submitting the PR and was meaning to update it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: DockerComposeContainer: Add option for down -v in stop()
2 participants