Im using 2 containers on my Ubuntu OS: Gitlab-ce and gitlab-runner
Containers names are: gitlab_gitlab_1 and gitlab_gitlab-runner_1
I
I know this thread is old, but I saw everywhere threads pointing to this one, but did'nt solve for me.
I got the same error message :
fatal: unable to access 'http://gitlab.maison.fr:82/angular/test1.git/': Could not resolve host: gitlab.maison.fr
Adding network_mode = "host" to config.toml solve the problem.
My config.toml below on my local private network :
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "mars"
url = "http://gitlab.maison.fr:82/"
token = "TCfHAheTUdWMU2-fFNxK"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = false
image = "gitlab/gitlab-runner:latest"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache"]
shm_size = 0
network_mode = "host"