I was facing the same error Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout
because of slow internet connection.
Switching to a comparatively faster internet connection didn’t fix my problem at first. Then I restarted docker and it worked.
$ sudo systemctl restart docker