Hey
I want to build a docker image in a job and I tried using docker:dind image as part of my executor for this stage but I get the error:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
I’ve searched a lot and I found setup_remote_docker
but this nice feature has very limited resources and it takes a long time for my image to build and it’s not configurable.
any thoughts on how to get that docker daemon running?
seems like the default entrypoint is changing in circleci.
my configurations:
---
version: 2.1
executors:
dind-executor:
docker:
- image: 'docker:stable-dind'
resource_class: small
jobs:
build-dashboard-image:
executor: dind-executor
steps:
- run:
name: Docker build
command: 'docker build -t dashboard:latest .'
- run:
name: Docker login
command: 'docker login -u _json_key -p "$GCLOUD_SERVICE_KEY"'
- run:
name: Docker push
command: 'docker push dashboard:latest'