在公司网络后面的Docker-container中连接Gitlab-Runner的运行是否有任何工作?
我花了数周的时间尝试连接在公司网络后面的码头容器中运行的Gitlab-Runner。我尝试docker run -add-host< ip>
将主机IP添加到/etc/hosts
在我的容器中,但我无法注册跑步者。我正在使用CNTLM身份验证代理配置进行代理,
ERROR: Registering runner....failed runner=xxxxxxxxxxxxxxx status=couldn't execute POST
against https://git.scsops.dev/api/v4/runner: POST "https://git.scsops.dev/api/v4/runner":
proxyconnect TCP: dial TCP 127.0.0.1:3128: connect: connection refused
PANIC: Failed to register the runner
请我需要帮助,谢谢您。
I spent weeks trying to connect GitLab-Runner running in the docker container behind the corporate network. I try docker run --add-host<IP>
to add the host IP to /etc/hosts
in my container, but I can't register my Runner. I am using Cntlm Authentication Proxy Configuration for the proxy
ERROR: Registering runner....failed runner=xxxxxxxxxxxxxxx status=couldn't execute POST
against https://git.scsops.dev/api/v4/runner: POST "https://git.scsops.dev/api/v4/runner":
proxyconnect TCP: dial TCP 127.0.0.1:3128: connect: connection refused
PANIC: Failed to register the runner
Please I need help, Thank you in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议按照此链接中的步骤遵循该链接中的步骤,这将自动将代理信息传递给容器:
I would suggest following the steps in this link this will pass proxy information to containers automatically:
https://docs.docker.com/network/proxy/