gitlab-runner拉取gitlab代码失败

服务器A:gitlab
服务器B:gitlab-runner (dind)
问题描述:通过gtilab-runner拉取https://gitlab.xxxxx.com/service.git代码报错
fatal: unable to access ‘https://gitlab.xxxxxxx.com/service/financialservice.git/’: Empty reply from server

容器网络访问服务器有问题?

variables:
GIT_SSL_NO_VERIFY: “1”
脚本中加参数,不对证书进行校验,就可以了

  • As a temporary and insecure workaround, to skip the verification of certificates, in the variables: section of your .gitlab-ci.yml file, set the CI variable GIT_SSL_NO_VERIFY to true.