Connect to docker via localhost

1 job for master in 48 seconds (queued for 1 second)
Status Name Job ID Coverage
failed publish #3006


Name Stage Failure
publish Publish
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See

Login Succeeded
$ docker build -t $CI_REGISTRY/$CI_PROJECT_PATH .
Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
time="2021-03-06T15:21:36Z" level=error msg="failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial tcp [::1]:2375: connect: connection refused"
ERROR: Job failed: exit code 1