I am using Docker Toolbox for Windows. Everything works fine. I am now trying to run an image which clones some github repos into the local container folders.
What I want now is to mount that container folder (containing the files) to a folder on my host machine. I am trying to do it like this:
docker run --name testcontainer -v /c/Users/username/Desktop/testvolume:/var/www/testsite -d -p 80:80
It is correctly creating the folder on my host, but it is empty and its overwriting the contents of the directory in the container, so it gets emptied as well.
Why does it not work as expected, and how can I achieve this?