Closed Robin2009 closed 7 years ago
The issue is you have the gitlab.local.com entry only in your /etc/hosts.
Just use gitlab in place of gitlab.local.com in /etc/hosts and in the gitlab configuration, and the resolution will be the same in the runner context and on your desktop.
Hi @digitalLumberjack , thanks for your kind response so much. If my understanding is right, then according to your suggestion, those what I should change:
127.0.0.1 gitlab.local.com
to 127.0.0.1 gitlab
in /etc/hosts on my macgitlab.local.com
with gitlab
in my docker-compose.yml fileI will try it soon once I get my mac in hand. One more question, in that case, is the links: -gitlab
still necessary for me?
My case is simply to host a gitlab and a CI runner together inside of my local docker on my mac. I can see the runner is recognized by gitlab but it looks like the runners docker is unable to fetch repository from it. I'd been searching a lot but just can't fix my problem. I guess it's due to the network settings of the "temp" container created by my runner container. Here's my .yml file which's aiming to create a self-hosted gitlab & gitlab-runner. Hope anyone has any idea to help me to get it work.
CI thrown messages like this:
with adding the
links = [gitlab]
into the[runners.docker]
section I got this instead: