Skip to content

Commit

Permalink
ignore other ports
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Oct 12, 2023
1 parent 065ddae commit 4a8118d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reaper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ defmodule TestcontainersElixir.Reaper do

{:ok,
%DockerEngineAPI.Model.ContainerInspectResponse{
NetworkSettings: %{Ports: %{^port_str => [%{"HostPort" => host_port}]}}
NetworkSettings: %{Ports: %{^port_str => [%{"HostPort" => host_port} | _tail]}}
}} = connection |> DockerEngineAPI.Api.Container.container_inspect(container_id)

:gen_tcp.connect(~c"localhost", String.to_integer(host_port), [
Expand Down

0 comments on commit 4a8118d

Please sign in to comment.