Using Docker I get the error: “SQLSTATE[HY000] [2002] No such file or directory”

If you face this error on your local then you need to change your DB configuration to run the project on local with docker. Your docker config file might look like this In the above settings (db:) this is your localhost so your database configuration will look like database host: DB database username: rootdatabase password : 12345