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
This answer was from Spenhouet given here.
More Related Contents:
- Docker Toolbox – Localhost not working
- Docker repository server gave HTTP response to HTTPS client
- Mount current directory as a volume in Docker on Windows 10
- How to connect to a docker container from outside the host (same network) [Windows]
- How do I get Docker to run on a Windows system behind a corporate firewall?
- Docker: How to clear the logs properly for a Docker container?
- Flask CLI throws ‘OSError: [Errno 8] Exec format error’ when run through docker-compose
- Docker – failed to compute cache key: not found – runs fine in Visual Studio
- Is it safe to clean docker/overlay2/
- How do I mount a Docker volume while using a Windows host?
- Not able to access tomcat application on Docker VM with host(windows) IP while using docker toolbox
- docker error on windows : the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’ [duplicate]
- Inject host’s SSH keys into Docker Machine with Docker Compose
- boot2docker startup script to mount local shared folder with host
- Volume mounts not working Kubernetes and WSL 2 and Docker
- Trouble with renaming folders and sub folders using Batch
- Docker Error bind: address already in use
- What does %date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2% mean?
- How to run a hello.js file in Node.js on windows?
- Recommended libraries/howtos for using WMI with java? [closed]
- Counting in a FOR loop using Windows Batch script
- Windows batch: sleep [duplicate]
- While loop in batch
- Docker Compose keep container running
- How can I tell if a window has focus? (Win32 API)
- How do I create a manifest file to launch application with admin privileges?
- How to change default sound playback device programmatically?
- Git serve: I would like it that simple
- OpenSSL hangs during PKCS12 export with “Loading ‘screen’ into random state”
- How do I find out the browser’s proxy settings?