jenkins-jnlp-slave | JNLP Slave that enables docker build | Continuous Deployment library
kandi X-RAY | jenkins-jnlp-slave Summary
kandi X-RAY | jenkins-jnlp-slave Summary
A JNLP Slave that enables docker build and fixes volume permissions on startup
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jenkins-jnlp-slave
jenkins-jnlp-slave Key Features
jenkins-jnlp-slave Examples and Code Snippets
Community Discussions
Trending Discussions on jenkins-jnlp-slave
QUESTION
We are running a Kubernetes cluster for building Jenkins jobs. For the pods we are using the odavid/jenkins-jnlp-slave JNLP docker image. I mounted the /var/run/docker.sock to the pod container and added jenkins(uid=1000) user to the docker group on the host systems.
When running a shell script job in Jenkins with e.g. docker ps
it fails with error docker: not found
.
ANSWER
Answered 2021-May-20 at 16:20/var/run/docker.sock is just the host socket that allows docker client to run docker commands from the container.
What you are missing is the docker client in your container.
Download the docker client manually and place it on a persistent volume and ensure that he docker client is in the system path. Also, ensure that the docker client is executable.
This command will do it for you. You may have to get the right version of the docker client for your environment
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jenkins-jnlp-slave
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page