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

docker.build().inside() not run "inside" in Jenkins within Docker

      My Jenkins is within a Docker container, and I try to run docker.build(...).inside(...) in it, but the inside bit does not run within the newly built container. I know, because pwd gives me:  /var/jenkins_home/workspace/youtube-delete-tracker_jenkins which is clearly the Jenkins container.

      I've tried this both in imperative and declarative style.

      I have a lot more details in a StackOverflow question: https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container

          [JENKINS-55351] docker.build().inside() not run "inside" in Jenkins within Docker

          Attila Szeremi created issue -
          Attila Szeremi made changes -
          Description Original: My Jenkins is within a Docker container, and I try to run `docker.build(...).inside(...)` in it, but the inside bit does _not_ run within the newly built container. I know, because `pwd` gives me:  `/var/jenkins_home/workspace/youtube-delete-tracker_jenkins` which is clearly the Jenkins container.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          New: My Jenkins is within a Docker container, and I try to run {{docker.build(...).inside(...) }}in it, but the inside bit does _not_ run within the newly built container. I know, because {{pwd}} gives me:  {{/var/jenkins_home/workspace/youtube-delete-tracker_jenkins}} which is clearly the Jenkins container.

          I've tried this both in imperative and declarative style.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          Attila Szeremi made changes -
          Link New: This issue relates to JENKINS-52493 [ JENKINS-52493 ]
          Attila Szeremi made changes -
          Description Original: My Jenkins is within a Docker container, and I try to run {{docker.build(...).inside(...) }}in it, but the inside bit does _not_ run within the newly built container. I know, because {{pwd}} gives me:  {{/var/jenkins_home/workspace/youtube-delete-tracker_jenkins}} which is clearly the Jenkins container.

          I've tried this both in imperative and declarative style.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          New: My Jenkins is within a Docker container, and I try to run {{docker.build(...).inside(...) }}in it, but the inside bit does _not_ run within the newly built container. I know, because {{pwd}}}} gives me:  {{/var/jenkins_home/workspace/youtube-delete-tracker_jenkins}} which is clearly the Jenkins container.

          I've tried this both in imperative and declarative style.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          Attila Szeremi made changes -
          Description Original: My Jenkins is within a Docker container, and I try to run {{docker.build(...).inside(...) }}in it, but the inside bit does _not_ run within the newly built container. I know, because {{pwd}}}} gives me:  {{/var/jenkins_home/workspace/youtube-delete-tracker_jenkins}} which is clearly the Jenkins container.

          I've tried this both in imperative and declarative style.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          New: My Jenkins is within a Docker container, and I try to run {{docker.build(...).inside(...) }}in it, but the inside bit does _not_ run within the newly built containe}}r. I know, because {{pwd}} gives me:  {{/var/jenkins_home/workspace/youtube-delete-tracker_jenkins}} which is clearly the Jenkins container.

          I've tried this both in imperative and declarative style.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          Attila Szeremi made changes -
          Description Original: My Jenkins is within a Docker container, and I try to run {{docker.build(...).inside(...) }}in it, but the inside bit does _not_ run within the newly built containe}}r. I know, because {{pwd}} gives me:  {{/var/jenkins_home/workspace/youtube-delete-tracker_jenkins}} which is clearly the Jenkins container.

          I've tried this both in imperative and declarative style.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          New: My Jenkins is within a Docker container, and I try to run {{docker.build(...).inside(...) }}in it, but the inside bit does _not_ run within the newly built container}}{{}}}}{{. I know, because {{pwd}} gives me:  {{/var/jenkins_home/workspace/youtube-delete-tracker_jenkins}} which is clearly the Jenkins container.

          I've tried this both in imperative and declarative style.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          Attila Szeremi made changes -
          Description Original: My Jenkins is within a Docker container, and I try to run {{docker.build(...).inside(...) }}in it, but the inside bit does _not_ run within the newly built container}}{{}}}}{{. I know, because {{pwd}} gives me:  {{/var/jenkins_home/workspace/youtube-delete-tracker_jenkins}} which is clearly the Jenkins container.

          I've tried this both in imperative and declarative style.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          New: My Jenkins is within a Docker container, and I try to run {{docker.build(...).inside(...) in it, but the inside bit does _not_ run within the newly built container}}{{. I know, because pwd}} gives me:  {{/var/jenkins_home/workspace/youtube-delete-tracker_jenkins}} which is clearly the Jenkins container.

          I've tried this both in imperative and declarative style.

          I have a lot more details in a StackOverflow question: [https://stackoverflow.com/questions/53950128/jenkins-within-docker-dockerfile-agent-happens-outside-new-container]
          Attila Szeremi made changes -
          Link New: This issue duplicates JENKINS-33510 [ JENKINS-33510 ]
          Attila Szeremi made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            amcsi Attila Szeremi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: