Intermittent TLS Handshake Timeout while Pulling Docker Images

Hi:

I am facing an intermittent issue while pulling Docker images from Docker Hub. Here is what happened step by step:

1-I tried to pull the image for the first time:
docker pull faizan890/dash:latest
The image downloaded successfully:

2-On the second attempt to pull the same image:
docker pull faizan890/dash:latest
I got the following error:

Error response from daemon: Head “https://registry-1.docker.io/v2/faizan890/dashboard/manifests/latest”: net/http: TLS handshake timeout

3-When I try to pull another image:

docker pull faizan890/sp-service:latest

It again fails with:

Error response from daemon: Get “https://registry-1.docker.io/v2/faizan890/splitter-service/manifests/…”: net/http: TLS handshake timeout

4-I also tried logging out and logging in again:
docker logout
docker login -u faizan890
Issue still persists intermittently.

Why is this TLS handshake timeout happening intermittently even for small images that previously pulled successfully? Any recommended fix or workaround?

We usually need the following information to understand the issue:

  1. What platform are you using? Windows, Linux or macOS? Which version of the operating systems? In case of Linux, which distribution?

  2. How did you install Docker? Sharing the platform almost answers it, but only almost. Direct links to the followed guide can be useful.

  3. On debian based Linux, the following commands can give us some idea and recognize incorrectly installed Docker:

    docker info
    docker version
    

    Review the output before sharing and remove confidential data if any appears (public IP for example)

    dpkg -l 'docker*' | grep '^ii'
    snap list docker
    

    When you share the outputs, always format your posts according to the following guide: How to format your forum posts