title: Invalid reference format
body: <p>I'm getting an "invalid reference format" error when trying to run a docker container on Windows using the below syntax, following the below guide.</p>
  
  <p><a href="https://www.jenkins.io/doc/tutorials/build-a-multibranch-pipeline-project/" rel="nofollow noreferrer">https://www.jenkins.io/doc/tutorials/build-a-multibranch-pipeline-project/</a></p>
  
  <p>ERROR
  C:\Program Files\Docker\Docker\Resources\bin\docker.exe: invalid reference format.
  See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.</p>
  
  <p>docker container run --name jenkins-docker --rm --detach ^</p>
  
  <p>--privileged --network jenkins --network-alias docker ^</p>
  
  <p>--env DOCKER_TLS_CERTDIR=/certs ^</p>
  
  <p>--volume jenkins-docker-certs:/certs/client ^</p>
  
  <p>--volume jenkins-data:/var/jenkins_home ^</p>
  
  <p>--volume "%HOMEDRIVE%%HOMEPATH%":/home ^</p>
  
  <p>docker:dind</p>
  
  <p>I've also tried running it as one big long command (below) and get the same error?</p>
  
  <p>docker container run --name jenkins-docker --rm --detach --privileged --network jenkins --network-alias docker --env DOCKER_TLS_CERTDIR=/certs --volume jenkins-docker-certs:/certs/client --volume jenkins-data:/var/jenkins_home --volume "%HOMEDRIVE%%HOMEPATH%":/home docker:dind</p>
  
  <p>Can anyone point me in the right direction?</p>
  
  <p>Thanks in advance :-)</p>
  
  <p>Greg</p>