【发布时间】:2016-03-04 08:30:23
【问题描述】:
我在测试环境中运行了 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
我使用--debug 标志运行 gitlab-runner 并使用它正在尝试的确切地址(使用正确的令牌),我可以很好地克隆存储库。我不知道为什么该服务无法克隆存储库。运行程序执行程序也配置为“docker”。也许该容器存在一些端口映射问题?
【问题讨论】:
-
我在旧的 CentOS 6.6 机器上遇到了同样的问题。升级
nss curl libcurl,解决问题。似乎提到了同样的问题here
标签: git gitlab gitlab-ci gitlab-ci-runner