title: Docker Jenkins Image - curl: (3) Illegal characters found in URL
body: <p>I have created the following Dockerfile to create a Jenkins container.
  It successfully works on OSX but when I try it on Windows 7, I get the following error when building the container.</p>
  
  <pre><code>Sending build context to Docker daemon 32.26 kB
  Step 1 : FROM jenkins:latest
  ---&gt; 997d1b2b89a5
  Step 2 : COPY plugins.txt /var/jenkins_home/plugins.txt
  ---&gt; Using cache
  ---&gt; 632e6f94438c
  Step 3 : RUN /usr/local/bin/plugins.sh /var/jenkins_home/plugins.txt
  ---&gt; Running in a56c01d8afe0
  Downloading credentials:1.24
  curl: (3) Illegal characters found in URL
  SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
  The command '/bin/sh -c /usr/local/bin/plugins.sh /var/jenkins_home/plugins.txt' returned a non-zero code: 3
  </code></pre>
  
  <p>This is my Dockerfile</p>
  
  <pre><code>FROM jenkins:latest
  
  COPY plugins.txt /var/jenkins_home/plugins.txt
  RUN /usr/local/bin/plugins.sh /var/jenkins_home/plugins.txt
  
  # Adding default Jenkins Jobs
  COPY jobs/unit-test-adapter.xml /usr/share/jenkins/ref/jobs/unit-test-    adapter/config.xml
  
  ############################################
  # Configure Jenkins
  ############################################
  # Jenkins settings
  COPY config/config.xml /usr/share/jenkins/ref/config.xml
  
  # Jenkins Settings, i.e. Maven, Groovy, ...
  COPY config/hudson.tasks.Maven.xml     /usr/share/jenkins/ref/hudson.tasks.Maven.xml
  COPY config/maven-global-settings-files.xml /usr/share/jenkins/ref/maven-    global-settings-files.xml
  
  # SSH Keys &amp; Credentials
  COPY config/credentials.xml /usr/share/jenkins/ref/credentials.xml
  COPY config/ssh-keys/id_rsa /usr/share/jenkins/ref/.ssh/id_rsa
  COPY config/ssh-keys/id_rsa.pub /usr/share/jenkins/ref/.ssh/id_rsa.pub
  </code></pre>
  
  <p>Does anyone know what the issue maybe? I'm confused as the <code>plugins.sh</code>script should be running inside of a build container rather than on Windows.</p>