Hello!
I have two problems:
1) Pipeline running on shared runner throws error
"failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial tcp 172.17.0.3:2375: connect: connection refused"
I tried to restart pipeline several times, same error happens, sometimes error message differs little bit. That’s other error message I get
Cannot connect to the Docker daemon at tcp://docker:2375. Is the docker daemon running?
And here is step it is supposed to run
dockerize:
stage: dockerize
image: docker:latest
services:
- docker:dind
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build
--build-arg DB_HOST=$PROD_DB_HOST
--build-arg DB_USER=$PROD_DB_USER
--build-arg DB_PASSWORD=$PROD_DB_PASSWORD
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
only:
- develop
- tags
It worked fine some days ago, but not it keeps throwing this error at build step
And other problem / question:
Sometimes when pipeline fails with this error it leaks all secrets into job history and I can’t find way how to clear job history. Someone suggested to delete whole project and make it again but that does not seem to be too good option (might cause all sorts of other issues)
Here is error message it throws sometimes
error during connect: Post http://docker:2375/v1.40/build?buildargs=%7B%DB_HOST%22%3A%22 ... all secrets leaked in here ... : context canceled
ERROR: Job failed: exit code 1
Both errors have happened on shared-runners-manager-4.gitlab.com
and also with managers 3, 5, and 6
https://status.gitlab.com/ shows all green. Maybe there is something I should change in my CI settings to get it working again?