please explain im dumb
what i want to do is make a docker volum on an external drive so i did
docker volume create hello --opt type=none --opt device=D:\hello --opt o=bind
but when i tried to run something i got an error
C:\Users\hejaa>docker run -v hello:/output ghcr.io/openzim/youtube youtube2zim --help
docker: Error response from daemon: failed to populate volume: error while mounting volume '/var/lib/docker/volumes/hello/_data': failed to mount local volume: mount D:\hello:/var/lib/docker/volumes/hello/_data: no such device.
See 'docker run --help'.
I wrote about in in my blogpost:
https://dev.to/rimelek/everything-about-docker-volumes-1ib0#custom-volume-path
Quote:
volume_name="test-volume"
source="$PWD/$volume_name"
mkdir -p "$volume_name"
docker volume create "$volume_name" \
--driver "local" \
--opt "type=none" \
--opt "device=$source" \
--opt "o=bind"
But I recommend reading the rest of the post as well.
How do you use Docker Desktop? Using the WSL2 backend or hyperv?
Is drive “D” an external drive?