相关疑难解决方法(0)

GitLab runner无法通过http克隆存储库

我在测试环境中运行了最新的GitLab docker镜像,我遇到了GitLab运行器的问题.它无法通过HTTP链接进行克隆,产生以下消息:

Running on runner-bd27e50b-project-1-concurrent-0 via machine...
Cloning repository...
Cloning into '/builds/my/awesome-project'...
fatal: unable to access 'http://gitlab-ci-token:xxxxxx@127.0.0.1/my/awesome-project.git/': 
    Failed to connect to 127.0.0.1 port 80: Connection refused

ERROR: Build failed with: exit code 1
Run Code Online (Sandbox Code Playgroud)

我用--debug标志运行了gitlab-runner 并使用了它正在尝试的确切地址(带有令牌)并且我可以克隆存储库就好了.我不知道为什么服务无法克隆存储库.运行程序执行程序也配置为"docker".也许有一些端口映射问题进入该容器?

git gitlab gitlab-ci gitlab-ci-runner

7
推荐指数
2
解决办法
6707
查看次数

标签 统计

git ×1

gitlab ×1

gitlab-ci ×1

gitlab-ci-runner ×1