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

Different behavior between debian container using docker.inside

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: docker-workflow-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.19.3 on a Debian 8, remote slave agents running on empty Debian 8 with only docker
    • Similar Issues:

      Description

      Hi,

      I have a weird behavior when I try to use the docker image debian:wheezy. Whatever I try to do inside this container, it looks like docker manager don't wait for the command to be proceed.

      Here is the Jenkinsfile I'm using:

      #!groovy
      stage('run') {
          node('docker') {
              docker.image('debian:wheezy').inside {
                  sh "sleep 30s"
              }
          }
      }
      

      The image is well pulled and a container is well ran but when it comes to do the sleep command, well, it just pass and return a bad exit code and output

      ERROR: script returned exit code -1
      

      If you replace debian:wheezy with anything else like debian:jessie or ubuntu:whatever it works.

      Basically, the container don't seems to have any issue by itself but, when used on a Jenkinsfile pipeline using this plugin its seems to be broken. Actually I don't know if the issue is the plugin or the container: enlight me please !

      PS: Thx for your amazing job <3

        Attachments

          Issue Links

            Activity

            clementgautier Clement Gautier created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Description Hi,

            I have a weird behavior when I try to use the docker image debian:wheezy. Whatever I try to do inside this container, it looks like docker manager don't wait for the command to be proceed.

            Here is the Jenkinsfile I'm using:
            ```#!groovy
            stage('run') {
                node('docker') {
                    docker.image('debian:wheezy').inside {
                        sh "sleep 30s"
                    }
                }
            }
            ```

            The image is well pulled and a container is well ran but when it comes to do the sleep command, well, it just pass and return a bad exit code and output

            ```
            ERROR: script returned exit code -1
            ```

            If you replace debian:wheezy with anything else like debian:jessie or ubuntu:whatever it works.

            Basically, the container don't seems to have any issue by itself but, when used on a Jenkinsfile pipeline using this plugin its seems to be broken. Actually I don't know if the issue is the plugin or the container: enlight me please !

            PS: Thx for your amazing job <3
            Hi,

            I have a weird behavior when I try to use the docker image debian:wheezy. Whatever I try to do inside this container, it looks like docker manager don't wait for the command to be proceed.

            Here is the Jenkinsfile I'm using:

            {code}
            #!groovy
            stage('run') {
                node('docker') {
                    docker.image('debian:wheezy').inside {
                        sh "sleep 30s"
                    }
                }
            }
            {code}

            The image is well pulled and a container is well ran but when it comes to do the sleep command, well, it just pass and return a bad exit code and output

            {code:none}
            ERROR: script returned exit code -1
            {code}

            If you replace debian:wheezy with anything else like debian:jessie or ubuntu:whatever it works.

            Basically, the container don't seems to have any issue by itself but, when used on a Jenkinsfile pipeline using this plugin its seems to be broken. Actually I don't know if the issue is the plugin or the container: enlight me please !

            PS: Thx for your amazing job <3
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 89 (Web Link)" [ 15439 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-42166 [ JENKINS-42166 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-43881 [ JENKINS-43881 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-35370 [ JENKINS-35370 ]
            kerrhome Shannon Kerr made changes -
            Link This issue is related to JENKINS-46545 [ JENKINS-46545 ]
            leedega Kevin Phillips made changes -
            Link This issue relates to JENKINS-46969 [ JENKINS-46969 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              clementgautier Clement Gautier
              Votes:
              8 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated: