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

DOCKER_HOST set on slave ignored by docker-pipeline

      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.

          [JENKINS-43222] DOCKER_HOST set on slave ignored by docker-pipeline

          Nicolas De Loof added a comment - https://github.com/jenkinsci/docker-workflow-plugin/pull/91

          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.

          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.

          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

          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

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

              Created:
              Updated:
              Resolved: