for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker windows and its containers lose internet connectivity after a specific container performs some actions

Open Guluis opened this issue 7 years ago • 2 comments

  • [X ] I have tried with the latest version of my channel (Stable or Edge)
  • [X ] I have uploaded Diagnostics
  • Diagnostics ID: 6DEFF5C5-3CC9-49EA-A404-63D7791350E0/20191010054319

Expected behavior

Docker for Windows should have access to the internet and so should all of its containers

Actual behavior

Docker and all containers lose connectivity to internet until the docker is restarted.

Information

I have a container which loads a tomcat web site with over 2000 servlets and then crawls through all of these servlets (OWASP benchmark, available in dockerhub). I created a loop script that runs this container, executes an internal script then stops it. If I run this in a loop, after about 2-3 iterations, all containers lose internet connectivity. The docker itself also loses connectivity and docker pull commands fail. An example error is: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.65.3:37074->192.168.65.1:53: i/o timeout

The issue occurs over time when using the same container with Jenkins. restarting the docker resolves the issue. Even removing all containers doesn't resolve the issue. I uploaded diagnostics for when the issue was occurring.

This reproduces every few days on my Jenkins machine. Windows version: Recreated on server 2019, windows 10 and windows 7. Docker version: 2.1.0.3 (38240)

Guluis avatar Oct 10 '19 14:10 Guluis

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Jan 08 '20 01:01 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

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. /lifecycle locked

docker-robott avatar Jul 10 '20 03:07 docker-robott