I have enabled the Continer Registry on Gitlab under the gitlab.yml file where I have set the registry_external_url
to look like this http://registry.domain
. I have configured my .gitlab-ci.yml
to log in Docker this way: docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
an I have set the following docker image:
image: docker:18-git
services:
- docker:18-dind
But whenever I run the pipeline, I get the following error:
Error logging in to v2 endpoint, trying next endpoint: Get https://registry.domain/v2/: dial tcp: lookup registry.domain on IP adress : no such host"
I'm thinking it's because I'm using http instead of https but I'm not really sure about it.