-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Any container will lost TCP connection after while #2406
Comments
#2384 - could be the same problem |
This really hurts builds in my case |
Thanks for the report. There is currently a 2 minute timeout on idle connections in the stateful firewall but there is also code which attempts to trigger TCP keep-alive packets every few seconds. I suspect the keep-alive code isn't working. |
#2421 - seems to be the same problem |
Does this problem only happens in docker for Mac? Or may affect any other platforms? I’m facing this issue on my local machine and warring about any potential of failure when I deploy it to the production environment, which is Linux. |
@tmshn this problem only affects Docker for Mac. Everything should work ok in production on Linux. @esler I think the underlying problem with TCP keepalives was fixed in moby/vpnkit#359 and has been released to the edge channel. To test it I created a TCP connection from a container to the host via Thanks everyone for the report! |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Established TCP connection should hold indefinitely if idle.
Actual behavior
TCP/IP connection is lost after two minutes or so.
Information
Steps to reproduce the behavior
nc -l 0.0.0.0 1234
telnet 192.168.1.1 1234
I tried this simple proof of issue on container
debian:stable-slim
with installedtelnet
. If I run same commands on host machine directly, connection will hold.It's affecting any idle TCP connection.
Edit:
My colleague is having same issue on Docker for Windows
The text was updated successfully, but these errors were encountered: