I’m having an issue with CI this morning - this ran perfectly fine yesterday -
Here’s what I’ve tried:
- updated .yml to use docker version 19.03.0 (previously using latest)
- changed services to use docker:19.03.0-dind ( previously using ‘dind’ - no version )
Runner output:
Getting source from Git repository
Fetching changes...
Initialized empty Git repository in /builds/noao/dmo/cas-server/.git/
Created fresh repository.
Checking out 608dea00 as master...
Skipping Git submodules setup
Executing "step_script" stage of the job script
$ docker info
errors pretty printing info
Client:
Debug Mode: false
Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1
Here is my .gitlab-ci.yml config:
image: docker:19.03.0
services:
- docker:19.03.0-dind
stages:
- build
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "/certs"
CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
ENVIRONMENT: "prod"
before_script:
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- 'echo "Buidling for commit: $CI_COMMIT_REF_NAME"'
- 'echo "Container test image name: $CONTAINER_TEST_IMAGE"'
build:
stage: build
only:
- tags
- /^master$/
script:
- 'docker build -t $CONTAINER_TEST_IMAGE .'
- 'docker push $CONTAINER_TEST_IMAGE'