Docker Pipeline plugin: docker.withServer still executes on local Jenkins server

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Expect this to be executed on the remote Docker host with TLS configured, instead it is executed on the Jenkins-local Docker container (remote ip: 10.11.11.109, port: 2376, Docker credential ID: my-docker-creds) :

      docker.withServer('tcp://10.11.11.109:2376', 'my-docker-creds'){ s ->
        docker.image('httpd').inside { c ->
          sh 'uname -a'
        }
      }
      

      This is the console output:

      [Pipeline] node {
      [Pipeline] Sets up Docker server endpoint : Start
      [Pipeline] withDockerServer {
      [Pipeline] sh
      [fds] Running shell script
      + docker inspect -f . httpd
      .
      [Pipeline] Run build steps inside a Docker container : Start
      $ docker run -t -d -u 501:20 -w /Users/kzantow/jenkins_latest_jan_2016/workspace/fds -v /Users/kzantow/jenkins_latest_jan_2016/workspace/fds:/Users/kzantow/jenkins_latest_jan_2016/workspace/fds:rw -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** httpd cat
      [Pipeline] withDockerContainer {
      [Pipeline] sh
      ...
      

            Assignee:
            Jesse Glick
            Reporter:
            Keith Zantow
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: