在公司网络后面的Docker-container中连接Gitlab-Runner的运行是否有任何工作?

发布于 2025-01-31 05:41:02 字数 505 浏览 4 评论 0原文

我花了数周的时间尝试连接在公司网络后面的码头容器中运行的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

染柒℉ 2025-02-07 05:41:02

我建议按照此链接中的步骤遵循该链接中的步骤,这将自动将代理信息传递给容器:

I would suggest following the steps in this link this will pass proxy information to containers automatically:
https://docs.docker.com/network/proxy/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文