woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.31k stars 371 forks source link

Cannot connect to the Docker daemon #4140

Closed guzmanf closed 2 months ago

guzmanf commented 2 months ago

Component

agent

Describe the bug

Kubernetes rke2r1 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

and obsviusly the pipeline don't run

Steps to reproduce

remove old version and re-install via helm char new version

helm uninstall woodpecker -n woodpecker && \ kubectl delete ns woodpecker && \ helm upgrade --install woodpecker woodpecker/woodpecker --namespace woodpecker --create-namespace -f woodpecker-values.yaml

Expected behavior

the pipeline has to run

System Info

{
  "source": "https://github.com/woodpecker-ci/woodpecker",
  "version": "2.7.1"
}

Additional context

Step Logs

1) clone image

2) on my first step build-publish image

Validations

qwerty287 commented 2 months ago

Do you use docker-buildx plugin? If yes, can you post the configuration of this step?

guzmanf commented 2 months ago

... variables:

steps:

thank for your attention best regard

qwerty287 commented 2 months ago

Just remove the line secrets: [hub_username, hub_password]. You already have that information in settings.

Secrets make that it's not treated as plugin anymore and therefore it doesn't get privigeled which is required to access the docker deamon.

guzmanf commented 2 months ago

thank so much...!!!!

now is working perfectecly, please close this issue

best regard!!!