Volume mounts in windows does not work

Same problems, how use volume with windows? nothing work

It’s really working!! Thank you!

Thanks, 2 hours and your post helped.

Tip: Just use quotes around the Windows path, after all, the colon is used to map one path to another, and you’ve typed TWO of them.

docker run --rm -it -v "C:\Users\cameron\a-b":/a-b ubuntu:14.04

You may also have NTFS access issues if you go into Users on Windows, since docker doesn’t run on your account.

1 Like

Use

docker run -v "c:\Users":/data alpine ls /data

I have use the following command and it work for me . Check if you have shared the folder in docker virtualbox manager ->settings-> share folder
docker container run -v //c/Users/myuser/mydata:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=test -d mysql:5

Putting quotation marks around the windows path worked for me. Thanks!

Encountered the same problem.

After researching, I found a solution that works for me:

Run the following command in PowerShell, ensuring it is capitalized, to address the issue:

docker run -it --rm -p 5173:5173 -v "${PWD}/src:/app/src" -v "/app/node_modules" -e CHOKIDAR_USEPOLLING=true rd1