I am currently experiencing an issue on Gitlab.com, on a .gitlab-ci.yml
script that worked perfectly fine till yesterday.
The issue seems to be that Gitlab cannot connect to the docker host?
I’ve redacted the names of repo to “repo”.
Running with gitlab-runner 10.3.0 (5cf5e19a)
on runner-gitlab-runner-89f7696df-7vqbn (fcfc2d4a)
Using Kubernetes namespace: gitlab-managed-apps
Using Kubernetes executor with image repo/ci-executor ...
Waiting for pod gitlab-managed-apps/runner-fcfc2d4a-project-8033271-concurrent-178krv to be running, status is Pending
Waiting for pod gitlab-managed-apps/runner-fcfc2d4a-project-8033271-concurrent-178krv to be running, status is Pending
Waiting for pod gitlab-managed-apps/runner-fcfc2d4a-project-8033271-concurrent-178krv to be running, status is Pending
Running on runner-fcfc2d4a-project-8033271-concurrent-178krv via runner-gitlab-runner-89f7696df-7vqbn...
Cloning into '/repo/repo'...
Cloning repository...
Checking out 204253ee as live-together...
Skipping Git submodules setup
$ docker info
error during connect: Get http://docker:2375/v1.38/info: dial tcp: lookup docker on 10.67.240.10:53: no such host
ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1
This is the contents of my .gitlab-ci.yml file
The contents of my gitlab-ci.yml
file:
image: docker:stable
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2 # Use OverlayFS for speed improvements. See https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#using-docker-caching
DOCKER_HOST: tcp://docker:2375
before_script:
- docker info
test_borrower_app:
stage: test
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE/repo
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
- docker pull $IMAGE_TAG:latest || true # Pulls existing docker image if it exists
- docker build --cache-from $IMAGE_TAG:latest -t $IMAGE_TAG:$CI_COMMIT_SHA -t $IMAGE_TAG:latest -f ./repo/Dockerfile.dev ./repo
- docker run $IMAGE_TAG npm test -- --coverage
- docker push $IMAGE_TAG:$CI_COMMIT_SHA
- docker push $IMAGE_TAG:latest