Davidse
Davidse

Reputation: 1

The docker container doesn't working Kubernetes Plugin jenkins

I deployed version 2.319.3 of Jenkins helm but I have an issue stranger with the container docker. My version Kubernetes: 1.22.6 (aks).

ERROR:

docker build -t registry.azurecr.io/test:develop-v81. Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Test another docker command:

Server: ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? errors pretty printing info

My agents pods config:

apiVersion: "v1" kind: "Pod" metadata: labels: jenkins/jenkins-jenkins-agent: "true" jenkins/label-digest: "500b4f18aee87616849e4f4c2435020898e34aa0" jenkins/label: "jenkins-jenkins-agent" name: "default-gvzg5" spec: containers:

The docker container should be working. This is working with the old version of jenkins 2.277.1.

Upvotes: 0

Views: 523

Answers (1)

Davidse
Davidse

Reputation: 1

The problem is caused for the Kubernetes version. You can't execute Daemon docker /var/run/docker.sock with privileges. You can try to fix this with Kaniko Container or use a Virtual Machine with docker and privileges. Thank you.

Upvotes: 0

Related Questions