Gitlab Runner lottery - Could not resolve host: and other errors

Hi, I have problem with my Gitlab Runner. I’m running Runner on my linux server, using Docker. The problem is that the jobs sometimes are failing, giving me following three types messages:

fatal: unable to access '': Could not resolve host:


WARNING: Ignoring temporary error (try again later)


ERROR: Job failed (system failure): Error response from daemon: Get dial tcp: lookup on read udp> i/o timeout (docker.go:142:11s)

I’m retrying jobs until they are completed but it drives me mad…

Here is my runner config:
concurrent = 10
check_interval = 0

  session_timeout = 1800

      name = "xxx"
      url = ""
      token = "xxx"
      executor = "docker"
            tls_verify = false
            image = "docker:latest"
            privileged = false
            disable_entrypoint_overwrite = false
            oom_kill_disable = false
            disable_cache = false
            volumes = ["/var/run/docker.sock:/var/run/docker.sock", "/cache"]
            shm_size = 0

Why sometimes it’s working and sometimes not?

Hi there!

It seems that your runner has some DNS issues every now and then. Have you tried to configure dns (like or something like that) in The [runners.docker] section?

Best Regards,
Łukasz Korbasiewicz
GitLab Support



I changed dns in runner config but it didn’t help. However it make me look at /etc/resolv.conf and I found that dns was set to my router (it is my home server). I changed it to and it seems to work perfectly now!

Dzięki for your help :wink: