Hey there, my gitlab-ci.yaml attempts to establish a connection to the project’s docker image registry in order that it can then build and push an image to the registry. Howver, when the pipeline runs I get the following error:
$ docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get https://my.gitlab.server:1234/v2/: dial tcp: lookup my.gitlab.server on 10.0.0.0:53: no such host ERROR: Job failed: exit code 1
I tried putting a ping to my.gitlab.server in to my gitlab-ci.yaml to test, and it was able to successfully hit my server so I don’t know why docker is unable to resolve the hostname.