I am using Docker Toolbox 1803 under Windows 10 64bit.
I am trying to run docker zipkin in my local system, and got failure when ran the following command in Toolbox GuickStart Terminal.
docker-compose -f docker-compose.yml -f docker-compose-cassandra.yml up
The following line of docker-compose.yml caused the problem.
version: '2'
...
prometheus:
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
The failure info is like following:
ERROR: for 80b791289250_prometheus Cannot start service prometheus: b'OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/e/FreelanceProjects/myapp/docker-zipkin/prometheus/prometheus.yml\\\\\\" to rootfs \\\\\\"/mnt/sda1/var/lib/docker/aufs/mnt/277f74637f71455a7b1ab4e421cf629b926f3bcbe216c3e109e029c49502b5a1\\\\\\" at \\\\\\"/mnt/sda1/var/lib/docker/aufs/mnt/277f74637f71455a7b1ab4e421cf629b926f3bcbe216c3e109e029c49502b5a1/etc/prometheus/prometheus.yml\\\\\\" caused \\\\\\"not a directory\\\\\\"\\"":Starting zipkin ... done
if the specified host path exists and is the expected type'
ERROR: for prometheus Cannot start service prometheus: b'OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/e/FreelanceProjects/myapp/docker-zipkin/prometheus/prometheus.yml\\\\\\" to rootfs \\\\\\"/mnt/sda1/var/lib/docker/aufs/mnt/277f74637f71455a7b1ab4e421cf629b926f3bcbe216c3e109e029c49502b5a1\\\\\\" at \\\\\\"/mnt/sda1/var/lib/docker/aufs/mnt/277f74637f71455a7b1ab4e421cf629b926f3bcbe216c3e109e029c49502b5a1/etc/prometheus/prometheus.yml\\\\\\" caused \\\\\\"not a directory\\\\\\"\\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type'
ERROR: Encountered errors while bringing up the project.
UPDATE: I have set env variable COMPOSE_CONVERT_WINDOWS_PATHS=1
, it still does not work.
Update: Switched to Docker for Windows and WSL2. The experience is great enough, but sadly I have to give up my VirutalBox.