Answer the question
In order to leave comments, you need to log in
Can't launch jenkins without error?
Throws an error all the time.
I use this papline
pipeline {
agent {
docker { image 'node:16.13.1-alpine' }
}
stages {
stage('Test') {
steps {
sh 'node --version'
}
}
}
}
version: '3.7'
services:
jenkins:
user: root
image: jenkins/jenkins:2.325-jdk11
volumes:
- /home/jenkins/jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
restart: always
ports:
- 80:8080
- 50000:50000
restart: always
Answer the question
In order to leave comments, you need to log in
The script wants docker CLI, but it is not installed.
See some example how to run docker in docker. Or you can do it the old fashioned way - raise jenkins on a virtual machine.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question