This is the error message returned by the drone-runner-kube
+ /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock --insecure-registry http://10.0.81.179:30050
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.9
API version: 1.41
Go version: go1.16.8
Git commit: c2ea9bc
Built: Mon Oct 4 16:03:22 2021
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
drone.yml
configuration
- name: build-image(dry)
image: plugins/docker
pull: if-not-exists
volumes:
- name: docker-cache
path: /var/lib/docker
settings:
# username:
# from_secret: docker_username
# password:
# from_secret: docker_secret
dockerfile: build/Dockerfile
repo: 10.0.81.179:30050/waf/${DRONE_REPO_NAME}
registry: http://10.0.81.179:30050
dry_run: true
tags:
- ${DRONE_BUILD_NUMBER}
environment:
PLUGIN_INSECURE: "true"
drone-runner-kube
configuration
apiVersion: apps/v1
kind: Deployment
metadata:
name: drone-runnerx
namespace: drone
labels:
app.kubernetes.io/name: drone-runnerx
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: drone-runnerx
template:
metadata:
labels:
app.kubernetes.io/name: drone-runnerx
spec:
containers:
- name: runner
image: drone/drone-runner-kube:latest
ports:
- containerPort: 3000
env:
- name: DRONE_RPC_HOST
value: drone-serverx
- name: DRONE_RPC_PROTO
value: http
- name: DRONE_RPC_SECRET
value: dronetest
- name: DRONE_NAMESPACE_DEFAULT
value: drone
I don’t know if it’s because I’m missing something, can you give me some help?