Since docker-java added support for tmpfs in 3.1.0-rc-3 (see docker-java/docker-java#1022), it is now possible to configure TestContainers to use tmpfs using something like:
withCreateContainerCmdModifier(cmd -> cmd.getHostConfig().withTmpFs(
Collections.singletonMap(System.getProperty("java.io.tmpdir"), "rw")));
It would be nice if TestContainers could enhance it's API to provide a way to configure this a bit simpler.
Since docker-java added support for tmpfs in
3.1.0-rc-3(see docker-java/docker-java#1022), it is now possible to configure TestContainers to use tmpfs using something like:It would be nice if TestContainers could enhance it's API to provide a way to configure this a bit simpler.