private Path getLocalTempFile(String s) throws IOException {
        Path projectRoot = Paths.get(".");
        Path tempDirectory = Files.createTempDirectory(projectRoot, this.getClass().getSimpleName() + "-test-");
        Path relativeTempDirectory = projectRoot.relativize(tempDirectory);
        Path tempFile = Files.createTempFile(relativeTempDirectory, "test", s);

        tempDirectory.toFile().deleteOnExit();
        tempFile.toFile().deleteOnExit();

        return tempFile;
    }
Containerised docker image registry, with simple hardcoded credentials
core/src/test/java/org/testcontainers/utility/AuthenticatedImagePullTest.java