private Optional<Path> tryEnv() {
        String xdgRuntimeDir = System.getenv("XDG_RUNTIME_DIR");
        if (StringUtils.isBlank(xdgRuntimeDir)) {
            log.debug("$XDG_RUNTIME_DIR is not set.");
            return Optional.empty();
        }
        Path path = Paths.get(xdgRuntimeDir);
        if (!Files.exists(path)) {
            log.debug("$XDG_RUNTIME_DIR is set to '{}' but the folder does not exist.", path);
            return Optional.empty();
        }
        Path socketPath = path.resolve("docker.sock");
        if (!Files.exists(socketPath)) {
            log.debug("$XDG_RUNTIME_DIR is set but '{}' does not exist.", socketPath);
            return Optional.empty();
        }
        return Optional.of(socketPath);
    }
@deprecated this class is used by the SPI and should not be used directly
core/src/main/java/org/testcontainers/dockerclient/RootlessDockerClientProviderStrategy.java