简体   繁体   English

docker 容器中的 laravel 项目,无法访问我的图像 - 403 被禁止

[英]laravel project in a docker container, cannot access my images - 403 forbidden

I tried already setting the storage folder ownership to www-data and also my user, i tried chmod -R 7777 storage as well.我已经尝试将存储文件夹所有权设置为www-data以及我的用户,我也尝试了chmod -R 7777 storage
I also tried setting to www-data the whole /var/www .我还尝试将整个/var/www设置为www-data

I don't know what to try anymore, I don't have this problem in another computer where I have the project.我不知道该尝试什么了,在我拥有该项目的另一台计算机上没有这个问题。 Just cloned this one from gitlab.刚刚从 gitlab 克隆了这个。

错误

it seams like you haven't linked Laravel storage.它看起来像你没有链接 Laravel 存储。 Do this from your project directory从您的项目目录执行此操作

  php artisan storage:link

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM