Skip to content

Commit

Permalink
prioritze legacy docker socket path if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Dec 15, 2024
1 parent 9cf3559 commit 66090c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection/docker_host_strategy/docker_socket_path.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down

0 comments on commit 66090c8

Please sign in to comment.