Hello all,
I use gitlab.com (NO self-hosted) and I get this error when I run my CI using a Gitab-Runner installed on Windows or within Docker, precisely just after I do docker build, it works ok if I use a Gitlab Runner installed on Linux or I use shared runners:
Get https://registry.gitlab.com/v2/: x509: certificate signed by unknown authority
I have tried to enable/disable TLS but then I get the following error:
no active session for deyvlborrpy89ibo2fvk9xxb9: context deadline exceeded
I have read this might be related to certificates as well but I do not know why this is happening even with TLS is disabled with:
DOCKER_TLS_CERTDIR: ""
My Docker runner configuration is:
[[runners]]
name = "Windows Docker Kindoi Runner"
url = "https://gitlab.com/"
token = "SRtsrp5NYxiAKRxKxYk4"
executor = "docker"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]
[runners.docker]
tls_verify = true
image = "docker:19.03.12"
privileged = true
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = ["/cache", "/certs/client"]
shm_size = 0
And within my ci yml file:
test_server:
tags:
- docker
stage: test
image: docker/compose:1.27.4
services:
- docker:19.03.12-dind
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login -u $CI_REGISTRY_USER --password-stdin $GITLAB_REGISTRY
script:
Anyone knows how to fix this certificate issue? I have tried adding stuff like:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_CERT_PATH: "/certs/client"
DOCKER_HOST: "tcp://docker:2376"
DOCKER_TLS_VERIFY: 1
Any help or hint would be really appreciated. I have been trying to solve this for several days without any success. Thank you in advance and regards.