testcontainers / testcontainers/testcontainers-java
Can not connect to Ryuk at localhost:49154
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 8.7k
- Forks
- 1.9k
- Ø Merge
- 2 T. 17 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
Dear all,
I'm running testcontainers on Windows and Linux (WSL2).
On both systems I get since some days the following error when I try to use test containers.
I'm using Docker Desktop 4.5.1 (74721)
The following logs are from Ubuntu (WSL2):
12:47:43.495 [testcontainers-ryuk] WARN o.t.utility.ResourceReaper - Can not connect to Ryuk at localhost:49154
java.net.ConnectException: Connection refused: connect
When I run ryuk on its own, I get this
$ docker run quay.io/testcontainers/ryuk
2022/02/25 12:43:56 Starting on port 8080...
panic: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
goroutine 1 [running]:
main.main()
/go/src/github.com/testcontainers/moby-ryuk/main.go:31 +0xe2e
Here the docker logs of the container when I run it with mvn test:
$ docker logs 4fed1346fccd
2022/02/25 12:52:38 Starting on port 8080...
I get the same output when I run the stuff on windows.
If I look at the line starting with panic:
panic: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
As I'm using Docker Desktop, there is no such pipe, but you could use tcp://0.0.0.0:2375 to connect to docker.
But it seems in the past testcontainer had no issue with that. I'm not sure what was updated, so that it is now broken.
Is it possible to tell ryuk to use the tcp URL instead of the unix pipe?
Best regards,
Dieter
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, den Fehler mit mvn test zu reproduzieren, und untersuche ResourceReaper von Testcontainers zusammen mit dem bei main.go:31 erwähnten Ryuk-Einstiegspunkt. Prüfe, wie der Docker-Endpunkt unter Windows und WSL2 bereitgestellt wird; als erledigt gilt die Aufgabe, wenn Ryuk erfolgreich eine Verbindung herstellt und der Testlauf nicht mehr die Ablehnung von localhost:49154 meldet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, java
- Bereich
- devops, testing
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 20/100