Connection reset by peer when reading exec stdout/stderr #26793
Unanswered
HofmeisterAn
asked this question in
Q&A
Replies: 1 comment
-
Looking at the code I don't think we explicitly call close on the connection so it may be that we do not correctly handle the case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋,
I'm the maintainer of Testcontainers for .NET and Docker.DotNet. Some users have reached out to me reporting issues with Podman, specifically when running Podman on Linux (not Podman Desktop). I was able to reproduce the problem using Podman 5.5.2 (testcontainers/Docker.DotNet#11 (comment)).
The issue occurs when creating and starting an exec instance, and then reading from
stdout
orstderr
via the hijacked stream. Occasionally, this results in the following exception:So far, I haven't found anything wrong in the
Docker.DotNet
implementation.From what I can tell, it seems like when the child process exits, Podman doesn't close the socket gracefully, it just aborts the connection. Is that expected behavior? When I catch the exception and treat it as EOS, everything works fine (cannot imagine this is right).
I couldn't find any official docs about this behavior, and I want to make sure I'm handling it correctly.
Beta Was this translation helpful? Give feedback.
All reactions