Laravel, Nginx and Docker Container, Permission Denied Laravel, Nginx and Docker Container, Permission Denied nginx nginx

Laravel, Nginx and Docker Container, Permission Denied


Works as designed,

you are mounting "src" from your current directory into the container.

 volumes:  - ./src:/var/www

If you want to access your code inside the container you could add the files while building.

To fix your "bug",

chmod -R 777 /Users/john/Documents/work/dashboard/src/storage/logs

Would be ok a for local development environment


From my end, results are when no matter what folder permission we changed in the physical folder.

Delete everything in bootstrap/cache/* solved the issue.


In my case, I got this error when I ran out of HDD space and I cleared itOnly this helped:

rm bootstrap/cache/config.phpphp artisan cache:clearcomposer dump-autoload