-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
Using testcontainers-elixir 1.12.0
My test_helper.exs:
Testcontainers.start_link()
ExUnit.start()Sample test file:
defmodule ContainersTest do
use ExUnit.Case, async: true
def setup do
config = %Testcontainers.Container{image: "redis:5.0.3-alpine"}
{:ok, container} = Testcontainers.start_container(config)
{:ok, container: container}
end
test "container is running", %{container: container} do
IO.inspect(container, label: "Container")
:ok
end
endThe test exits with the failure ** (EXIT from #PID<0.98.0>) {:error, {:http_error, 407}}
I dug into the source code a bit and this seems to be returned when I run the code:
"Pull failed due to an unauthenticated request. Registry Access Management is enabled, which requires pulls to be authenticated. Please run `docker login`, or contact your administrators if this is unexpected.\n"
I have run docker login first but it doesn't change the outcome. Please advise what else I can do to help debug.