We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62cef58 commit 024304aCopy full SHA for 024304a
1 file changed
lib/connection/dockerurl.ex
@@ -1,20 +1,18 @@
1
defmodule Testcontainers.DockerUrl do
2
@moduledoc false
3
4
- @api_version "v1.41"
5
-
6
@test_client Tesla.client([], Tesla.Adapter.Hackney)
7
8
def construct(docker_host) do
9
case URI.parse(docker_host) do
10
%URI{scheme: "unix", path: path} ->
11
- "http+unix://#{URI.encode_www_form(path)}/#{@api_version}"
+ "http+unix://#{URI.encode_www_form(path)}"
12
13
%URI{scheme: "tcp"} = uri ->
14
- URI.to_string(%{uri | scheme: "http", path: "/#{@api_version}"})
+ URI.to_string(%{uri | scheme: "http"})
15
16
%URI{scheme: _, authority: _} = uri ->
17
- URI.to_string(%{uri | path: "/#{@api_version}"})
+ uri
18
end
19
20
0 commit comments