Build fails if using docker:dind from local registry
I pulled the official docker:dind
image, tagged it to local registry and pushed it. In .gitlab-ci.yml
I replaced the docker:dind
with local registry which I just pushed. While build it fails:
gitlab-ci-multi-runner 1.2.0 (3a4fcd4)
Using Docker executor with image docker:latest ...
Pulling docker image registry.example.com/docker:dind ...
Starting service registry.example.com/docker:dind ...
Waiting for services to be up and running...
Pulling docker image docker:latest ...
Running on runner-1e297f9e-project-1261511-concurrent-0 via dockerhub...
Fetching changes...
HEAD is now at a43bfcc Update .gitlab-ci.yml
From https://gitlab.com/sanrosh0705/docker
a43bfcc..c74355d master -> origin/master
Checking out c74355db as master...
$ docker build -t test .
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
ERROR: Build failed: exit code 1
with official image its working fine but not with local registry copy of the same image.
If its normal than could someone please explain.