diff --git a/lib/connection/docker_host_strategy/docker_socket_path.ex b/lib/connection/docker_host_strategy/docker_socket_path.ex index 861dc91..17e9e08 100644 --- a/lib/connection/docker_host_strategy/docker_socket_path.ex +++ b/lib/connection/docker_host_strategy/docker_socket_path.ex @@ -11,9 +11,9 @@ defmodule Testcontainers.DockerSocketPathStrategy do defp default_socket_paths do [ + "/var/run/docker.sock", Path.expand("~/.docker/run/docker.sock"), - Path.expand("~/.docker/desktop/docker.sock"), - "/var/run/docker.sock" + Path.expand("~/.docker/desktop/docker.sock") ] ++ case System.get_env("XDG_RUNTIME_DIR") do nil ->