testcontainers-python icon indicating copy to clipboard operation
testcontainers-python copied to clipboard

Feature: Temporary file volume mapping to dynamically generate generate the file content

Open jackburridge opened this issue 3 weeks ago • 0 comments

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

jackburridge avatar Dec 09 '25 23:12 jackburridge