private Optional<Path> tryFolder(Path path) {
        if (!Files.exists(path)) {
            log.debug("'{}' does not exist.", path);
            return Optional.empty();
        }
        Path socketPath = path.resolve("docker.sock");
        if (!Files.exists(socketPath)) {
            log.debug("'{}' does not exist.", socketPath);
            return Optional.empty();
        }
        return Optional.of(socketPath);
    }
Look at the following paths:
<ul>
    <li>Linux: ~/.docker/desktop/docker.sock</li>
    <li>MacOS: ~/.docker/run/docker.sock</li>
</ul>

@deprecated this class is used by the SPI and should not be used directly
core/src/main/java/org/testcontainers/dockerclient/DockerDesktopClientProviderStrategy.java