dotnet / Docker.DotNet

:whale: .NET (C#) Client Library for Docker API
https://www.nuget.org/packages/Docker.DotNet/
MIT License
2.23k stars 381 forks source link

.Net 8 upgrade: error occurred during the pre-login handshake #676

Open abhidixit11 opened 5 months ago

abhidixit11 commented 5 months ago

After upgrading to .net, below error is thrown while running integration tests with this package

Output of dotnet --info:

Microsoft.Data.SqlClient.SqlException : A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)

What version of Docker.DotNet?:

.Net8 (paste your output here)



**Steps to reproduce the issue:**
1. Upgrade to .net
2. run tests in pipeline which is using docker container coantaining .net 8 image on the gitlab runner

**What actually happened?:**
Error thrown-  error occurred during the pre-login handshake.

**What did you expect to happen?:**
Tests should execute

**Additional information:**
We are running integration tests on .net 8 container using .net 8 image. This package uses mssql 2019-latest image to run the container inside .net 8 container and test tries to connect this using localhost