Closed KohlhaseJ closed 11 months ago
This is unlikely a bug in TC for .NET. The Docker endpoint is indeed not a valid (supported) URI (tcp\://127.0.0.1\:2375
). I guess that your configuration is read from ~/.testcontainers.properties
. Please make sure that the docker.host
property is set correctly.
Hi @HofmeisterAn,
thanks for the hint. you're right. I was formerly using an older version of 'DotNet.Testcontainers' that seemed to somehow added this settings. The file was commented with
#Modified by Testcontainers
Resolved. Thanks.
thanks for the hint. you're right. I was formerly using an older version of 'DotNet.Testcontainers' that seemed to somehow added this settings. The file was commented with
Hm, do or did you use Testcontainers Cloud (Desktop)? IIRC, I saw the docker.host
property once in a while formatted like that. TC for .NET does not modify the properties file.
Testcontainers version
3.5.0
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host arch
x86
.NET version
6.0.414
Docker version
Docker info
What happened?
When using the latest testcontainers version on Windows 11 with Docker Desktop, initialising a new MsSqlContainer with
The intialisation crashes with error message
Debugging through the classes, the
DockerEndpointAuthenticationConfiguration
gets constructed with a Uri parameter with valuetcp\://127.0.0.1\:2375
which leads the Uri class to fail with with the above mentioned error.Relevant log output
No response
Additional information
No response