What are you trying to do?
Add a method to DockerContainer to dynamically add volume mappings
Why should it be done this way?
In memory dynamic volume bindings are incredibly useful, there are many use cases where you may want to dynamically generate file contents, and bind them to a container. Configuration is the core example
Other references:
This already exits in the .NET implementation, as an example https://dotnet.testcontainers.org/api/create_docker_container/#copying-directories-or-files-to-the-container
Would you like to implement a fix?
Yes