I cant mount volume on Windows.
docker run --name my-nginx -d -v e:/docker/phptest/nginx.conf:/etc/nginx/nginx.conf:ro -p 80:80 nginx:1.13-alpine
and any other variation of my path gives me the error:
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: invalid bind mount spec "/e/docker:/phptest:/nginx.conf:/etc/nginx/nginx.conf:ro": invalid volume specification.
or some error full of slashes if i try to use different slash convention.
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: contain
er init caused \"rootfs_linux.go:54: mounting \\\"/e/docker/phptest/nginx.conf\\\" to rootfs \\\"/var/lib/docker/overlay2/07795fb3c065300f20ccb736439f3aa440fd10dad92b8ef48750c3766f53c64f/merge
d\\\" at \\\"/var/lib/docker/overlay2/07795fb3c065300f20ccb736439f3aa440fd10dad92b8ef48750c3766f53c64f/merged/etc/nginx/nginx.conf\\\" caused \\\"not a directory\\\"\""
My current path:E:\docker\phptest, there is my nginx.conf file.
I enabled shared drives.