I'm trying to get my GitLab CI/CD set up using the Docker executor and the docker-in-docker approach and am stuck on the the following issue:
In my .gitlab-ci.yml I am attempting to establish a connection with GitLab's integrated docker registry for the project:
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
However, the pipeline exits with the following error:
Error response from daemon: Get https://my.gitlab.server:1234/v2/: x509: certificate signed by unknown authority
I am able to log in to the registry and push/pull from the machine that the gitlab-runner is running on without issue, so I know that the certificate issue is not on the host machine. Additionally, I have tried creating a custom Docker image build from docker:latest which copies my certificates into the build container -- I tried putting it in both /etc/ssl/certs and /etc/docker/certs.d/my.gitlab.server:1234 -- without any success.
Any idea on where I need to put my cert or how I might otherwise get this resolved?