This should be trivial, but maybe I’m overlooking something.
I try to setup drone with a docker runner:
version: '3'
services:
drone:
image: drone/drone:2
restart: unless-stopped
environment:
- DRONE_GITEA_SERVER=
- DRONE_GITEA_CLIENT_ID=
- DRONE_GITEA_CLIENT_SECRET=
- DRONE_RPC_SECRET=
- DRONE_SERVER_HOST=
- DRONE_SERVER_PROTO=
ports:
- 8811:80
runner:
image: drone/drone-runner-docker:1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_PROTO=
- DRONE_RPC_HOST=
- DRONE_RPC_SECRET=
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=
restart: unless-stopped
Logs of start:
drone-ci-drone-1 | {"interval":"30m0s","level":"info","msg":"starting the cron scheduler","time":"2023-04-27T10:09:33Z"}
drone-ci-drone-1 | {"interval":"24h0m0s","level":"info","msg":"starting the zombie build reaper","time":"2023-04-27T10:09:33Z"}
drone-ci-drone-1 | {"acme":false,"host":"drone.domain.tld","level":"info","msg":"starting the http server","port":":80","proto":"https","time":"2023-04-27T10:09:33Z","url":"https://drone.domain.tld"}
drone-ci-runner-1 | time="2023-04-27T10:34:53Z" level=info msg="starting the server" addr=":3000"
drone-ci-runner-1 | time="2023-04-27T10:34:53Z" level=info msg="successfully pinged the remote server"
drone-ci-runner-1 | time="2023-04-27T10:34:53Z" level=info msg="polling the remote server" arch=amd64 capacity=2 endpoint="http://drone" kind=pipeline os=linux type=docker
But when trying to run a build from a repo with image: plugins/docker
:
latest: Pulling from plugins/docker
Digest: sha256:dfd5140bb8b1bc698cc45e221d58da18d61b6873c7ac49c99c50e38b74786c49
Status: Image is up to date for plugins/docker:latest
+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock
Unable to reach Docker Daemon after 15 attempts.
Registry credentials or Docker config not provided. Guest mode enabled.
+ /usr/local/bin/docker version
Client:
Version: 20.10.14
API version: 1.41
Go version: go1.16.15
Git commit: a224086
Built: Thu Mar 24 01:45:09 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
exit status 1
Unable to reach Docker Daemon after 15 attempts.
Registry credentials or Docker config not provided. Guest mode enabled.
+ /usr/local/bin/docker version
Client:
Version: 20.10.14
API version: 1.41
Go version: go1.16.15
Git commit: a224086
Built: Thu Mar 24 01:45:09 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
exit status 1
I tried modifying permissions, but nothing worked… Am I missing something?