laravel on windows with docker - why is project stored in Windows File System?
If I follow the documentation for installing laravel 9 on Windows using docker, the project directory ends up in the Windows file system (in my Home directory), and is accessed from WSL via a mount point.
When opening the project in VSCode, the "Remote - WSL" extension warns: "This workspace is on the Windows file system (/mnt/). For best performance, we recommend moving the workspace to the Linux file system (~/home)."
I thought one of the reasons to use Docker was to easily deploy a project to a different host system. How is this possible if the application directory is stored outside the docker container?
Where does it say that you should run the install command on a windows path? What path did you enter in the terminal before running the install command?
Thanks for your reply, I think that answers my question: When I open an Ubuntu session in Windows terminal, it automatically opens in /mnt/c/Users/username, so I used that. Based on your answer, I assume that I should rather install to the Linux home directory?
@mhrdd Actually what you did is correct. It is actually weird that docker complains then, as you should install inside ubuntu. The error is that it thinks that the source folder is on windows, not linux..
As I understand it, /mnt/c/Users/username (where I installled) points to my Windows home directory via a Linux mount point. It is not Docker that complains, but rather the VSCode extension "Remote - WSL". With that setup, Vscode running under Windows, using "Remote - WSL", connects into Ubuntu, but then has to access my project on the Windows disk via a Linux mount point, which does seem an unnecessary roundtrip.
Interestingly, opening Ubuntu in its standard console (from the Windows start menu) opens in the Linux home directory. I figure I'll try installing there and see how that goes.