Support auto-detection DOCKER_HOST on macOS Ventura with latest Docker Desktop.
@@ -97,6 +97,8 @@ class DockerExtension {
boolean isWindows = isWindows()
if (!isWindows && new File('/var/run/docker.sock').exists()) {
dockerUrl = 'unix:///var/run/docker.sock'
+ } else if (!isWindows && new File("${System.getProperty("user.home")}/.docker/run/docker.sock").exists()) {
+ dockerUrl = "unix://${System.getProperty("user.home")}/.docker/run/docker.sock"
} else {
if (isWindows && new File("\\\\.\\pipe\\docker_engine").exists()) {
dockerUrl = 'npipe:////./pipe/docker_engine'
