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

docker.inside broken with old client versions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • docker-workflow-plugin

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

      node ("docker") {
          sh 'pwd'
          img = docker.image("ubuntu")
          img.inside {
              sh 'pwd'
          }
      }
      
      [Pipeline] Allocate node : Start
      Running on docker in /root/workspace/workspace/test-jobs/jnord/docker inside
      [Pipeline] node {
      [Pipeline] sh
      [docker inside] Running shell script
      + pwd
      /root/workspace/workspace/test-jobs/jnord/docker inside
      [Pipeline] sh
      [docker inside] Running shell script
      + docker inspect -f . ubuntu
      .
      [Pipeline] Run build steps inside a Docker container : Start
      $ docker run -t -d -u 0:0 -w "/root/workspace/workspace/test-jobs/jnord/docker inside" -v "/root/workspace/workspace/test-jobs/jnord/docker inside:/root/workspace/workspace/test-jobs/jnord/docker inside:rw" -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ubuntu cat
      [Pipeline] withDockerContainer {
      [Pipeline] sh
      [docker inside] Running shell script
      sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker inside@tmp/durable-5ea3c644/pid: Directory nonexistent
      sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker inside@tmp/durable-5ea3c644/jenkins-log.txt: Directory nonexistent
      sh: 1: cannot create /root/workspace/workspace/test-jobs/jnord/docker inside@tmp/durable-5ea3c644/jenkins-result.txt: Directory nonexistent
      [Pipeline] } //withDockerContainer
      $ docker stop 260e1e96255fd938e64d6bcd296ce616e01a40ece5ef093dfd97325418247904
      $ docker rm -f 260e1e96255fd938e64d6bcd296ce616e01a40ece5ef093dfd97325418247904
      [Pipeline] Run build steps inside a Docker container : End
      [Pipeline] } //node
      [Pipeline] Allocate node : End
      [Pipeline] End of Pipeline
      ERROR: script returned exit code -2
      Finished: FAILURE
      

            pierrebtz Pierre Beitz
            teilo James Nord
            Votes:
            5 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: