diff --git a/reaper.go b/reaper.go index a82a8ba54f..05a51f7e13 100644 --- a/reaper.go +++ b/reaper.go @@ -65,10 +65,11 @@ func NewReaper(ctx context.Context, sessionID string, provider ReaperProvider, r Labels: map[string]string{ TestcontainerLabelIsReaper: "true", }, - SkipReaper: true, - Mounts: Mounts(BindMount(dockerHost, "/var/run/docker.sock")), - AutoRemove: true, - WaitingFor: wait.ForListeningPort(listeningPort), + SkipReaper: true, + Mounts: Mounts(BindMount(dockerHost, "/var/run/docker.sock")), + AutoRemove: true, + WaitingFor: wait.ForListeningPort(listeningPort), + ReaperImage: reaperImage(reaperImageName), } // include reaper-specific labels to the reaper container diff --git a/reaper_test.go b/reaper_test.go index fd22fff377..8420e840c9 100644 --- a/reaper_test.go +++ b/reaper_test.go @@ -44,6 +44,7 @@ func createContainerRequest(customize func(ContainerRequest) ContainerRequest) C AutoRemove: true, WaitingFor: wait.ForListeningPort(nat.Port("8080/tcp")), NetworkMode: "bridge", + ReaperImage: "reaperImage", } if customize == nil { return req