I had issue when running job via gitlab-runner.
Could not resolve host: gitlab.com и dial tcp: lookup docker on 8.8.8.8:53: no such host
Solution:
add marked red and restart runner.
systemctl restart gitlab-runner
concurrent = 1
check_interval = 0
shutdown_timeout = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "your-runner"
url = "https://gitlab.com"
id = xxxx
token = "token"
token_obtained_at = 2023-11-11T10:08:46Z
token_expires_at = 0001-01-01T00:00:00Z
executor = "docker"
[runners.cache]
MaxUploadedArchiveSize = 0
[runners.docker]
tls_verify = false
image = "docker:dind"
privileged = true
dns = ["8.8.8.8"]
network_mode = "host"
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache","/var/run/docker.sock:/var/run/docker.sock"]
shm_size = 0
network_mtu = 0