Unable to access in Runner

Hello rombo5
Here is the solution.

Just need to open /etc/gitlab-runner/config.toml file and add:
extra_hosts = [“yourhostname:youripddress”] And all is done.
For example (my file):

[[runners]]
name = “co1”
url = “http://co1/ci
token = “1ccc03308b71a1c9a10640326adf1a”
executor = “docker”
[runners.docker]
tls_verify = false
image = “co1:5000/pub/pub”
privileged = false
disable_cache = false
volumes = [“/cache”]
shm_size = 0
extra_hosts = [“co1:192.168.176.137”]
[runners.cache]

1 Like