jenkins-jnlp-slave | jenkins JNLP slave with podman to provide | Continuous Deployment library
kandi X-RAY | jenkins-jnlp-slave Summary
kandi X-RAY | jenkins-jnlp-slave Summary
A [Jenkins JNLP slave] docker image with [podman] (binaries copied from [podman image] Podman provides [docker] CLI support for unprivileged users. Although the container must be privileged to be able to run podman containers all processes within the Jenkins slave run as unprivileged user jenkins after the container has been initialized. In order to make the Jenkins docker plugins work with podman a couple of compatibility hacks are provided with the docker script.
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