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.
https://www.jenkins.io/doc/tutorials/build-a-multibranch-pipeline-project/
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'.
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
I've also tried running it as one big long command (below) and get the same error?
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
Can anyone point me in the right direction?
Thanks in advance :-)
Greg
docker volume ls
– GintsGints