default void copyFileFromContainer(String containerPath, String destinationPath)
        throws IOException, InterruptedException {
        copyFileFromContainer(
            containerPath,
            inputStream -> {
                try (FileOutputStream output = new FileOutputStream(destinationPath)) {
                    IOUtils.copy(inputStream, output);
                    return null;
                }
            }
        );
    }
Copies a file which resides inside the container to user defined directory

@param containerPath path to file which is copied from container
@param destinationPath destination path to which file is copied with file name
@throws IOException if there's an issue communicating with Docker or receiving entry from TarArchiveInputStream
@throws InterruptedException if the thread waiting for the response is interrupted
core/src/main/java/org/testcontainers/containers/ContainerState.java