Docker Community Forums

Share and learn in the Docker community.

Docker network connections to external services experience timeouts

  • macOS Big Sur - 11.5.1 (20G80)
  • Docker Desktop - 3.5.2 (66501) - Docker subnet: 192.168.65.0/24
  1. Create and run a docker Ubuntu container - docker run -it ubuntu /bin/bash
  2. Update apt-get - apt-get update
  3. Install ping - apt-get install inetutils-ping
  4. Run command - ping 8.8.8.8
  5. Perform calls to other external services from other docker containers

Intermittently there are timeouts with the following error logs:

64 bytes from 8.8.8.8: icmp_seq=922 ttl=37 time=17.905 ms
64 bytes from 8.8.8.8: icmp_seq=923 ttl=37 time=4253.834 ms
64 bytes from 8.8.8.8: icmp_seq=924 ttl=37 time=3252.888 ms
64 bytes from 8.8.8.8: icmp_seq=925 ttl=37 time=2251.597 ms
64 bytes from 8.8.8.8: icmp_seq=926 ttl=37 time=20278.960 ms
64 bytes from 8.8.8.8: icmp_seq=927 ttl=37 time=19276.652 ms
92 bytes from 192.168.65.3: Destination Host Unreachable

While running ping 8.8.8.8 on my local system there are no interruptions, and the IP associated with the Destination Host Unreachable error above is part of my Docker subnet range. When running a looping curl command, I see No route to host errors, along with ConnectTimeout errors.

1 Like