I’m trying to run a gitlab-runner inside of a docker container. I’ve been following the gitlab-ci get started docs, and here is how i’ve installed the image:
While the Docker container will use its host’s /etc/hosts for DNS resolution, 127.0.1.1 is a loopback address - I suspect this means the Docker container is trying to connect to itself, not the host’s processes.
The host should have an IP address similar to 10.0.2.* (check with ip a) - try adding that to the host’s /etc/hosts instead of 127.0.1.1, e.g.