Search code examples
gitlab-ci-runner

Client.Timeout exceeded while awaiting headers)


I made a specific runner on my own server, when I try to docker login to gitlab registry, I face with the error message that says "Error response from daemon: Get https://registry.gitlab.com/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)" Is there any solution to this problem?


Solution

  • After a lot of searches, I find out that I must specify the DNS configuration in /etc/resolv.conf path, in my case, nameserver 8.8.8.8 was not working because of my location and I had to change it, then login was successful.