Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

916
Views
Jenkins windows docker fails to run image, working directory is invalid, it needs to be an absolute path

I have an installation of Jenkins on my windows 10 machine and I'm trying to run the basic node.js pipeline example. When Jenkins tried to run the image I listed in the Jenkinsfile, I get this error:

Failed to run image 'node:7-alpine'. Error: docker: Error response from daemon: the working directory 'C:\Users\Joel\.jenkins\workspace\symview-3_master' is invalid, it needs to be an absolute path.

See 'docker run --help'.

This is the Jenkinsfile I am using:

pipeline {
     agent {
        docker { image 'node:7-alpine' }
    }

    stages {
        stage('Test') {
            steps {
                sh 'node --version'
            }
        }
    }
}

How can I fix the absolute path issue on windows?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

At the moment, Jenkins Docker Pipeline plugin on the Windows host can't execute Linux Docker images due to a bug https://issues.jenkins.io/browse/JENKINS-60473

over 4 years ago · Santiago Trujillo Report

0

Try replacing the working directory path as below (escape each slash with ) C:\\Users\\Joel\\.jenkins\\workspace\\symview-3_master

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!