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

DOCKER_HOST set on slave ignored by docker-pipeline

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Using a docker slave, I do not bind mount docker.sock (sic) but expose docker API via a filtering proxy using DOCKER_HOST env variable

      docker-pipeline doesn't detect volumes used for `/home/jenkins` when I use `docker.inside` and fails to share workspace.

       

      root reason is `docker inspect` is ran with node.environment, without consideration for environment variables set as node properties.

        Attachments

          Issue Links

            Activity

            Show
            ndeloof Nicolas De Loof added a comment - https://github.com/jenkinsci/docker-workflow-plugin/pull/91
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De Loof
            Path:
            src/main/java/org/jenkinsci/plugins/docker/workflow/WithContainerStep.java
            http://jenkins-ci.org/commit/docker-workflow-plugin/85018f1c2f977212b0ceb2e0d613f872c8604b92
            Log:
            JENKINS-43222 run docker cli with full environment for running commands on node.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: src/main/java/org/jenkinsci/plugins/docker/workflow/WithContainerStep.java http://jenkins-ci.org/commit/docker-workflow-plugin/85018f1c2f977212b0ceb2e0d613f872c8604b92 Log: JENKINS-43222 run docker cli with full environment for running commands on node.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/org/jenkinsci/plugins/docker/workflow/WithContainerStep.java
            http://jenkins-ci.org/commit/docker-workflow-plugin/5d1c03b5903c305368185cce14241b628f170712
            Log:
            Merge pull request #91 from ndeloof/JENKINS-43222

            JENKINS-43222 run docker cli with full environment for running commands on node.

            Compare: https://github.com/jenkinsci/docker-workflow-plugin/compare/c849a6259f93...5d1c03b5903c

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/docker/workflow/WithContainerStep.java http://jenkins-ci.org/commit/docker-workflow-plugin/5d1c03b5903c305368185cce14241b628f170712 Log: Merge pull request #91 from ndeloof/ JENKINS-43222 JENKINS-43222 run docker cli with full environment for running commands on node. Compare: https://github.com/jenkinsci/docker-workflow-plugin/compare/c849a6259f93...5d1c03b5903c

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                ndeloof Nicolas De Loof
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: