I have only read the beginning of your post.
Why do you absolutely want to use Docker ?
You can install Laragon and it works fine and let your Laravel application run on Windows.
I'm struggling to get my windows computer to be able to run my Laravel projects, it's a never ending battle. My newest try has been Docker/Sail since my Homestead died a week ago and refused to work again.
Here is what I did step by step:
wsl --update and wsl --set-default-version 2
sudo apt update and sudo apt full-upgrade
/home/programador/code/identity-provider
Now here is where I'm a bit lost and I haven't been able to more forward, I found this is the docs https://laravel.com/docs/10.x/sail#installing-composer-dependencies-for-existing-projects but in my case I don't have Sail installed on the projects either, so someone told me to try this
docker run --rm \
-u "$(id -u):$(id -g)" \
-v "$(pwd):/var/www/html" \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs && composer require laravel/sail --dev && php artisan sail:install
now this kinda works in the sense that I don't get any errors but after finishing it doesn't install anything from composer and says
Package manifest generated successfully.
89 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Command 'composer' not found, but can be installed with:
sudo apt install composer
ok, now last time I did run that sudo apt install composer BUT after that I kept getting a php version mismatch so I uninstalled that Ubuntu since I didn't know what to do to fix it.
So here I am again, what am I supposed to do now?
I tried to have a teammate install and run php artisan sail:install and sail was already installed but the second command php artisan sail:install threw a bunch of errors I'm assuming because my teammate doesn't use docker/sail but homestead.
How can I run php artisan sail:install ?
edit:
I managed to run the php command and now if I try to run sail up I get these errors https://media.discordapp.net/attachments/1134566429065224264/1136012007376691311/image.png?width=1119&height=555
https://media.discordapp.net/attachments/1134566429065224264/1136012007649316915/image.png?width=1440&height=522
Please or to participate in this conversation.