Describe your question in as much detail as possible:
Hey all - any help would be greatly appreciated! GitLab noob here.
What are you seeing, and how does that differ from what you expect to see?
I am seeing this:
When I expect to see the rest of the
.gitlab-ci.yml take place. It’s the template from the CI/CD tutorial, nothing that I wrote. The issue is that my runner can’t seem to access my localhost. Both my GitLab instance and my GitLab-runners are docker containers. I’m under the impression that when a runner is used a docker container then it creates its own docker instance so it makes sense to me that of course it couldn’t connect to my localhost, but I cannot seem to get it to connect to my localhost, which would be my GitLab server.
Consider including screenshots, error messages, and/or other helpful visuals
What version are you on? Are you using self-managed or GitLab.com?
- GitLab (Hint:
Add the CI configuration from
.gitlab-ci.ymland other configuration if relevant (e.g. docker-compose.yml)
web: image: 'gitlab/gitlab-ee:latest' restart: always hostname: 'http://localhost:8929' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'http://localhost:8929' gitlab_rails['gitlab_shell_ssh_port'] = 2224 ports: - '8929:8929' - '2224:22' volumes: - '$GITLAB_HOME/config:/etc/gitlab' - '$GITLAB_HOME/logs:/var/log/gitlab' - '$GITLAB_HOME/data:/var/opt/gitlab'
What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
I’ve tried a couple different things.
I have tried to add an alias in
config.tomlto see if I needed to alias my localhost so it can be seen by my runner. I turned my GitLab off and modified my
docker-compose.ymlto change the external url as can be seen in my document up top. I haven’t been too successful with either option.
EDIT: Might I add – I can
git clone http://localhost:8929/root/simple-ci-cd.git/ with zero issues in the console. So this further leads me to believe that the containerized runner just simply can’t see my gitlab container.