Gitlab docker runner cannot resolve host

Hi there,

I’m using self-hosted Gitlab CE 9.0.0 on a Ubuntu 16.04 LTS VM on a MacOS Sierra host.

I’ve declared a ‘gitstudio’ host. When the runner tries to clone the repo I’ve the following error:

Cloning repository…
Cloning into ‘/builds/webapps/myapp’…
fatal: unable to access ‘http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitstudio/webapps/myapp.git/’: Couldn’t resolve host ‘gitstudio’

My configuration:

external-url = ‘http://gitstudio


search localdomain

/etc/hosts localhost gitstudio

name = “gitstudio-runner”
url = “http://gitstudio/ci
token = “xxxxxxxxxxxxx”
executor = “docker”
tls_verify = false
image = “maven:3.3.9-jdk8”
privileged = false
disable_cache = false
volumes = ["/cache"]

“dns”: [“”, “”]

What am I missing here ? Any idea ?

Thanks for your help.