Docker注册GitLab-Runner报ERROR: Registering runner... failed。。。。: connect: no route to host
本文主要用于记录最近自己再Docker中注册GitLab-Runner时遇见的一些问题,与处理方式ERROR: Registering runner... failedrunner=sxWzyrsZ status=couldn't execute POST against http://192.168.29.128:80/api/v4/runners: Post http://192.168.29
·
本文主要用于记录最近自己再Docker中注册GitLab-Runner时遇见的一些问题,与处理方式
ERROR: Registering runner... failed runner=sxWzyrsZ status=couldn't execute POST against http://192.168.29.128:80/api/v4/runners: Post http://192.168.29.128:80/api/v4/runners: dial tcp 192.168.29.128:80: connect: no route to host
PANIC: Failed to register this runner. Perhaps you are having network problems
注册时出现该错误时的几个排查方向
1.检查宿主机的防火墙是否处于开启状态(我的问题则是由于防火墙没关导致,关闭后重写执行注册脚本就成功了)
查看防火墙当前状态
systemctl status firewalld.service
2.检查注册脚本中的url地址与registration-token是否与GitaLab中的一致
3.检查GitLab是否是Https访问协议,如果是则需要再再注册脚本中加入–tls-ca-file=”GitLab的公钥认证文件“
更多推荐
已为社区贡献1条内容
所有评论(0)