Reputation: 191
I installed docker and downloaded an ubuntu distro to run with laravel sail,planing to use swoole php,and made it default,also made wsl version to 2
with docker-compose.yml ready from laravel sail docker-compose.yml:
but every time I try to run the sail up cmd,it gives me this error " Unsupported operating system [MINGW64_NT-10.0]. Laravel Sail supports macOS, Linux, and Windows (WSL2)."
any ideas how to fix this ?
Upvotes: 8
Views: 17014
Reputation: 453
If you are using windows follow these steps.
./vendor/bin/sail up
. Make Sure you are running the command from your project folder in Ubuntu. Usually the folder is always in /mnt/c/users/path/to/project
./mnt/c/users/path-to-laravel-project
.
you should see the following for the first time. Note the folder path highlighted.wsl hostname -i
it outputs an IP address like , Note! your IP address may be different. Navigate to the IP address on default port 80 and you should see.I wish you a successful project. Enjoy!!
Upvotes: 22
Reputation: 134
You need to run the sail up command from inside your WSL2 Ubuntu Image not directly from your terminal. Once you do that it should work ok
Upvotes: 11