Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35217

docker.inside broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • docker-workflow-plugin
    • None

      Same title and description as the linked issue:

      create a job called "my job" with the following pipeline

      node ("master") {
          sh 'pwd'
          img = docker.image("ubuntu:16.04")
          img.inside {
              sh 'pwd'
          }
      }
      
      [Pipeline] node
      Running on principal in /var/lib/jenkins/workspace/QA/test@2
      [Pipeline] {
      [Pipeline] sh
      [test@2] Running shell script
      + pwd
      /var/lib/jenkins/workspace/QA/test@2
      [Pipeline] sh
      [test@2] Running shell script
      + docker inspect -f . ubuntu:16.04
      .
      [Pipeline] withDockerContainer
      $ docker run -t -d -u 0:0 -w /var/lib/jenkins/workspace/QA/test@2 -v /var/lib/jenkins/workspace/QA/test@2:/var/lib/jenkins/workspace/QA/test@2:rw -v /var/lib/jenkins/workspace/QA/test@2@tmp:/var/lib/jenkins/workspace/QA/test@2@tmp:rw -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ubuntu:16.04 cat
      [Pipeline] {
      [Pipeline] sh
      [test@2] Running shell script
      sh: 1: cannot create /var/lib/jenkins/workspace/QA/test@2@tmp/durable-c09e8ac6/pid: Directory nonexistent
      sh: 1: cannot create /var/lib/jenkins/workspace/QA/test@2@tmp/durable-c09e8ac6/jenkins-log.txt: Directory nonexistent
      sh: 1: cannot create /var/lib/jenkins/workspace/QA/test@2@tmp/durable-c09e8ac6/jenkins-result.txt: Directory nonexistent
      [Pipeline] }
      $ docker stop ca85a433cd90117673efd3a660ed6846b6a1c5181ebd0916d38bb4efd879a45a
      $ docker rm -f ca85a433cd90117673efd3a660ed6846b6a1c5181ebd0916d38bb4efd879a45a
      [Pipeline] // withDockerContainer
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      ERROR: script returned exit code -2
      Finished: FAILURE
      

      Opposed to JENKINS-33632, docker-workflow is already at 1.4 version

            jglick Jesse Glick
            witokondoria Javier Delgado
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: