From 66090c8a32ec60bee04e87562c4c2dad2b1cbfb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarl=20Andr=C3=A9=20H=C3=BCbenthal?= Date: Sun, 15 Dec 2024 16:14:14 +0100 Subject: [PATCH] prioritze legacy docker socket path if exists --- lib/connection/docker_host_strategy/docker_socket_path.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ->