I was trying to build a docker image locally using drone exec in windows.
Here is my .drone.yml file
clone: disable: true steps: - name: docker_local_build image: docker privileged: true environment: DOCKER_HOST: "tcp://localhost:2375" commands: - docker build -t foo/bar .
While running I’m receiving this error.
Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?
I think the container is not exposed to the local port 2375. Is there any possible way to expose local ports to the container in .drone.yml.