Hi, I am running docker using docker-machine via VirtualBox on Windows.
When using the -v command the volume gets mounted, but docker container does not see the content of the Windows drive and likewise, if you create a file/directory in the mounted volume, you don’t see the changes back in Windows.
Open settings of your docker-machine VM in VirtualBox. Go to Shared Folders section. You will most likely find that c/Users (case-sensitive) is mapped to c:\Users.
For VirtualBox shared folders to work with docker volumes, use the following commands (replace <full_project_path> with the real absolute path for the project):
I had similar problem. The culprit is spelling users with small “u”…it must be capital “U” Users solved the problem. I was using docker-compose to mount that volume.
volumes:
- …/…/Users/mypc/dockervolume:/var/www/html