2.4.0 - Flakey Connection to the Ryuk #775
-
Howdy, @HofmeisterAn! Experiencing a similar issue to #443 but in version 2.4.0. I didn't see a solution other than some saying a version upgrade resolved the issue. Being a few versions ahead now I'm still running into the same issue. In other projects I have circumvented this error by elevating Rancher/Docker Desktop to Admin, but that is unfortunately not an option in my current project. ~ every 3 runs test containers is functioning correctly, but the other times it fails to connect to ryuk and the container shows (like in #443): Below is an implementation with some things I have tried uncommented.
From what I've read it looks like specifying a port for the Ryuk container could be a solution, is there support for that in 2.4.0? Apologies if there's a solution I'm overlooking, I've been through several discussions/issues but the solutions have not seemed to fix the issues. Thank y'all for maintaining this project it has been an absolute delight on several projects I've worked with. Relevant Versioning/Info:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That is way too frequent. Sounds like another issue. I have seen some issues with Hyper-V or the machine network configurations. Did you check if you run into the excluded port ranges: docker/for-win#3171. Your configuration looks a bit unfortunate. I suggest to run a simple test to figure out what is causing the issue on your machine. public class GitHub : IAsyncLifetime
{
private readonly IContainer _container = new ContainerBuilder()
.WithImage("alpine:3.17")
.WithEntrypoint("/bin/sh", "-c")
.WithCommand("trap : TERM INT; sleep infinity & wait")
.Build();
public Task InitializeAsync()
{
return _container.StartAsync();
}
public Task DisposeAsync()
{
return _container.DisposeAsync().AsTask();
}
[Fact]
public Task Discussions775()
{
return Task.CompletedTask;
}
} Can you add Testcontainers log output including the stack trace? Did you check which port Ryuk is using and Testcontainers try to connect to? |
Beta Was this translation helpful? Give feedback.
That is way too frequent. Sounds like another issue. I have seen some issues with Hyper-V or the machine network configurations. Did you check if you run into the excluded port ranges: docker/for-win#3171.
Your configuration looks a bit unfortunate. I suggest to run a simple test to figure out what is causing the issue on your machine.