How can I connect my GitLab installation with a runner, that are both running in separate docker containers?
GitLab is working fine, it is reachable via http://docker.lcnet:8181
My first problem is, where can I find my Gitlab "CI" URL? or is it just my normal URL? Do I have to inlcude the Port?
I'm using this doc: https://docs.gitlab.com/ce/ci/docker/using_docker_images.html
This is what I get:
ubuntu@docker:~$ sudo docker exec -it gitlab-runner gitlab-runner register
Running in system-mode.
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://docker.lcnet:8181
Please enter the gitlab-ci token for this runner:
<token from settings>
Please enter the gitlab-ci description for this runner:
[5bf3c5086904]: my-runner
Please enter the gitlab-ci tags for this runner (comma separated):
tag1
ERROR: Registering runner... failed runner=hm-eFuar status=couldn't execute POST against http://docker.lcnet:8181/ci/api/v1/runners/register.json: Post http://docker.lcnet:8181/ci/api/v1/runners/register.json: dial tcp: lookup vader.nts on 8.8.8.8:53: no such host
PANIC: Failed to register this runner. Perhaps you are having network problems
I see that there are network problems but after some hours of searching I couldn't find a decent hint to resolve this problem. I know that docker images can communicate with each other via docker-names but this isn't mentioned anywhere how to set this up.
I tried to enter "gitlab-ce" (which is the name of the docker container running gitlab) but it won't work.
Do I have to create a docker network?