H
H
hesher_wise2021-12-21 12:56:16
Jenkins
hesher_wise, 2021-12-21 12:56:16

Can't launch jenkins without error?

61c1a45c7e137438807396.png
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'
            }
        }
    }
}

I run jenkins myself through such a docker compous.yaml
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

1 answer(s)
V
Vitaly Karasik, 2021-12-21
@hesher_wise

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 question

Ask a Question

731 491 924 answers to any question