Jenkins is running on docker container.
Running a Jenkinsfile from pipeline
this is my simple Jenkinsfile
pipeline {
agent {
docker { image ‘node:16.13.1-alpine’ }
}
stages {
stage(‘Test’) {
steps {
sh ‘node --version’
}
}
}
}
Below is the error:
docker inspect -f . node:16.13.1-alpine
/var/jenkins_home/workspace/dockerAgent@tmp/durable-2b942747/script.sh: 1: docker: not found
Not able to go forward so Please help
Thank you in advance…