在Docker容器中注册Gitlab Runner时出现证书错误

在Docker容器中注册Gitlab Runner时出现证书错误,docker,ssl,gitlab,gitlab-ci,gitlab-ci-runner,Docker,Ssl,Gitlab,Gitlab Ci,Gitlab Ci Runner,我试图在docker容器中注册gitlab runner,但注册时出现以下错误 错误- ERROR: Registering runner... failed runner=fgrgdfb status=couldn't execute POST against https://gitlab.systems/api/v4/runners: Post https://gitlab.systems/api/v4/runners: **x509: certificate

我试图在docker容器中注册gitlab runner,但注册时出现以下错误

错误-

ERROR: Registering runner... failed                 runner=fgrgdfb status=couldn't execute POST against https://gitlab.systems/api/v4/runners: Post https://gitlab.systems/api/v4/runners: **x509: certificate signed by unknown authority**
PANIC: Failed to register this runner. Perhaps you are having network problems
我是这样使用命令的

sudo docker run --rm -it --name gitlab-runner-v1 -v /var/run/docker.sock:/var/run/docker.sock -v /etc/gitlab-runner:/srv/gitlab-runner/config -v /etc/gitlab-runner/certs/RootCA.crt:/usr/local/share/ca-certificates/RootCA.crt -v -tls-ca-file=usr/local/share/ca-certificates/RootCA.crt gitlab/gitlab-runner:latest register
基本上,我正在尝试将证书路径从主机映射到容器中,这样它就不会给出证书错误,但这不起作用。 我的根证书是
RootCA.crt
,服务器证书是
gitlab.systems.crt

关于这里可能出现的错误以及我可以做些什么来成功注册跑步者的任何建议。请告诉我。任何线索感谢