mcjovial's avatar

laravel sail issue

i just tried laravel sail on my macbook m1 and the following error occured. any help please?

ERROR: for laravel.test Cannot start service laravel.test: Ports are not available: listen tcp 0.0.0.0:80: bind: address already in use

0 likes
5 replies
Wakanda's avatar
Wakanda
Best Answer
Level 10

@mcjovial if you have MySQL server installed locally and running, stop it, if you have valet running, stop it. After that, you may want to run

./vendor/bin/sail stop
./vendor/bin/sail down

and to make sure no other docker container is running run

docker stop $(docker ps -aq)

Now restart your PC you should be good to go hopefully

./vendor/bin/sail up -d
6 likes
Sergiu17's avatar

easiest way is to change the ports in your docker-compose file. 81 as an example, then access your app on localhost:81

1 like

Please or to participate in this conversation.