@Deprecated
    protected Path createVolumeDirectory(boolean temporary) {
        Path directory = new File(".tmp-volume-" + UUID.randomUUID()).toPath();
        PathUtils.mkdirp(directory);

        if (temporary) {
            Runtime
                .getRuntime()
                .addShutdownHook(
                    new Thread(
                        DockerClientFactory.TESTCONTAINERS_THREAD_GROUP,
                        () -> {
                            PathUtils.recursiveDeleteDir(directory);
                        }
                    )
                );
        }

        return directory;
    }
Creates a directory on the local filesystem which will be mounted as a volume for the container.

@param temporary is the volume directory temporary? If true, the directory will be deleted on JVM shutdown.
@return path to the volume directory
core/src/main/java/org/testcontainers/containers/GenericContainer.java