Timeout issue when trying to pull Registry image

When I do “docker run hello-world” , it works properly. But when I do “docker pull registry” I get this error

Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Why like this ? Both are connecting to Docker Hub. Then why this different behaviour ? And what is the solution ?
Is it because of my company proxy settings ?

Hi all
having the same issue even when using my home network or mobile data.