Docker – Put files in Windows Directory

Use:

volumes: - "C:/Users/Joey/Desktop/backend:/var/www/html"

Putting the whole thing in double quotes and using forward slashes worked for me. I was on windows 10 in windows 10 using Linux containers through WSL2.

Was this helpful?

0 / 0