Docker hub login from linux machine error

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