我想在我们的仓库中运行代码质量小部件。实际上,我想在我的kubernetes集群上注册一个gitlab runner来执行docker构建。我正在尝试通过Kubernetes Helm Charts安装gitlab runner。
这是我的 Helm 图:”
gitlabUrl: https://blabla/
runnerRegistrationToken: blabla
runners:
config: |
[[runners]]
[runners.docker]
tls_verify = false
image = "docker:stable"
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache", "/var/run/docker.sock:/var/run/docker.sock", "/tmp/builds:/tmp/builds"]
shm_size = 0
[runners.cache]
Type = "s3"
Path = "runner"
Shared = true
[runners.cache.s3]
ServerAddress = "s3.amazonaws.com"
BucketName = "blabla"
BucketLocation = "us-west-1"
Insecure = false
imagePullPolicy: IfNotPresent
字符串
不幸的是,这不起作用。Cannot connect to the Docker daemon at tcp://localhost:2375. Docker守护进程正在运行吗?
有人可以帮助解决这个问题的正确配置吗?
我的消息来源是:
https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html#set-up-a-private-runner-for-code-quality-without-docker-in-docker
https://docs.gitlab.com/runner/install/kubernetes.html
https://gitlab.com/gitlab-org/charts/gitlab-runner/blob/master/values.yaml的
先谢谢你。你是我最后的希望
1条答案
按热度按时间liwlm1x91#
docker daemon错误可以通过以下代码解决:
字符串