-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? #2
Comments
Hi Manuel.
This project was used within docker environments and I never used it in a K8s environment. From my understanding you might need to provide a sidecar container to use the Docker plug-in in pipelines, see for example https://applatix.com/case-docker-docker-kubernetes-part-2/ Never tried out, but I'm interested in your results. |
Follow-up. To make it work you should follow the docker-in-docker guide for Kubernetes I mentioned (https://applatix.com/case-docker-docker-kubernetes-part-2/) Limitations As I'm current not using this on K8s I cannot assure that every works, especially with regard to proper subreaper settings (might be something for the k8s init containers) and the privileged mode (which should normally NOT be required on K8s). How to resolve I've created a simple k8s deployment and skipped all options not applicable for the K8s environment:
After that you can open a shell in the deployed agent container and see success with So that I consider this ticket is resolved, do you agree? The K8s resource I used looks like this:
|
Hi, I am using your image to use jenkins-agent with docker, but when I run commands I get the error Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Do you know what it could be?
I'm using a kubernetes POD, thanks.
The text was updated successfully, but these errors were encountered: