public static synchronized DockerClientFactory instance() {
        if (instance == null) {
            instance = new DockerClientFactory();
        }

        return instance;
    }
Obtain an instance of the DockerClientFactory.

@return the singleton instance of DockerClientFactory
core/src/main/java/org/testcontainers/DockerClientFactory.java