Docker Community Forums

Share and learn in the Docker community.

Invalid reference format for docker run at powershell console


(Tarunkumard) #1

Invalid reference format for docker run at powershell console

Host is windows 10 an docker version is Docker version 18.09.0, build 4d60db4

1)in c:users , created a local directory called gatling , and under it I created 3 sub-directories: conf, results and user-files. I left the conf and results directories empty, and under user-files I created a simulations directory containing a Gatling load test scenario written in Scala. I also created a file in the user-files directory
2)gave command as docker run -it --rm -v c:/Users/gatling/conf:/opt/gatling/conf
-v c:/Users/gatling/user-files:/opt/gatling/user-files
-v c:/Users/gatling/results:/opt/gatling/results
denvazh/gatling
3)powershell complaining C:\Program Files\Docker\Docker\Resources\bin\docker.exe: invalid reference format.

Mind you ,i have shared c: as shored folder from settings section of docker also below command works fine i.e. gives output

docker run --rm -v c:/Users:/data alpine ls /data