Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ronspradlin's avatar

LARAVEL docker install using sail broken

I am new to laravel but i just tried to download via sail using the curl and followed the steps and something is broken. I am getting errors about root user cannot be configured and such. not sure if the issue is with the composer part or possibly a new MySQL image but something is surely amiss. i modified the .env file and took root out as the username like the error suggest but then I get other errors whenever the db is being acessed.

0 likes
5 replies
bugsysha's avatar

When you report something try to give exact errors what what steps got you there. Writing vague error message and such is not useful at all.

ronspradlin's avatar

it is ok. there are tons of them. all you have to do is try to install using the directions and you will see that the MySQL will not start. i created a project last week and in the past with no issue. it is not something I am doing wrong it is something wrong with either a image or the composer file that creates the app in the container. i am just running the scripts in the documentation. someone will figure it out and correct I suppose. thanks

ronspradlin's avatar

let me back up. it is not an error I am getting that I am asking anyone to help me with. I am not sure how to let whoever maintains the code that there is now an error in the code. i really think it is a issue with a new MySQL image that it is now pulling but I am not a expert in docker or laravel.

masih1f's avatar

it's good to run docker-compose down then run sail build --no-cache sail up

ronspradlin's avatar

Thanks. I tried the exact same process i did yesterday and today it worked for whatever reason. I will keep that in mind though, I appreciate the help.

Please or to participate in this conversation.