© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago
Stay

Application works on Windows and WSL2 but fails in docker (Linux). Broken pipe

I have an application that establishes a TCP connection to another Java application.

For some reason, when i run both applications in the same docker container (LInux, using the Dev Containers extension of vscode) the dotnet app reads giberish or gets disconnected by the java app because of a "broken pipe" exception.

This does not happen in Windows 10 or WSL2 (Ubuntu).
I understand that without looking at the code this is not a very helpful description, but i can't debug as good as in Rider in vscode and i don't understand why it would fail under a docker container and not on WSL2.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Build on Windows for Windows and Linux simultaneously
C#CC# / help
2y ago
System.AccessViolationException In windows but not in linux
C#CC# / help
2y ago