'docker run -gpus all with multiple volume for yolov5

docker run --gpus all --shm-size=4gb  --name bookfinalfinal  --volume D:/BankDataDocker/data:/usr/src/app/data   --volume D:/BankDataDocker/run:/usr/src/app/runs  yolo:v1 bash

docker: Error response from daemon: invalid mode: /usr/src/app/data.

I have tried changing into

docker run --gpus all --shm-size=4gb  --name bookfinalfinal  --volume /D/BankDataDocker/data:/usr/src/app/data   --volume /D/BankDataDocker/run:/usr/src/app/runs  yolo:v1 bash

successfully created a container however docker do not connect the volume directory, i can not access the local system file

or adding / in front of local system and docker container however both fails

I tried multiple solution from stackoverflow but still fails



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source