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

docker-plugin should support windows containers

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: docker-plugin
    • Labels:
      None
    • Environment:
      Windows 2016 with Docker version 18.03.1-ce (docker works on cmd-line)
      docker-plugin 1.1.4
      Jenkins 2.125 running on CentOS 6.8
      Oracle JDK 1.8
    • Similar Issues:

      Description

      I've attempted to make this work out of the box using the "Attached" method and encountered the following issues:

      • Leaving everything on defaults results in error running "/bin/sh".  
      • Specifying a command copied from a linux docker container (java -jar ROOT\remoting ...) did not work any better (this is a hack).    I get "System cannot find the path specified", with forward or back slashes.
      • Volume mounting does not work due to colons in paths ( acom.github.dockerjava.api.model.Bind.parse(Bind.java:130) Caused: java.lang.IllegalArgumentException: Error parsing Bind 'c:/jenkins:c:/jenkins').   This works on command-line.

      I'm currently testing with a vanilla microsoft docker image (microsoft/windowsservercore) with JDKs mounted via "Volumes From" a temporary container since volume parsing is broken.

      Any advice or comments on feasibility would be appreciated.

        Attachments

          Activity

          Hide
          akom Alexander Komarov added a comment - - edited

          I was able to use the Docker plugin using this prebuilt windows Docker image, so I can use it as an example:

          https://hub.docker.com/r/jonathank/jenkins-jnlp-slave-windows/

          (Possible note: I had to avoid using "windows" in the labels list, see JENKINS-51252 )

          Show
          akom Alexander Komarov added a comment - - edited I was able to use the Docker plugin using this prebuilt windows Docker image, so I can use it as an example: https://hub.docker.com/r/jonathank/jenkins-jnlp-slave-windows/ (Possible note: I had to avoid using "windows" in the labels list, see JENKINS-51252 )

            People

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

              Dates

              • Created:
                Updated:
                Resolved: