-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Sail Version
1.0.2
Laravel Version
11.19.0
PHP Version
8.3.11
Operating System
Linux
OS Version
Linux version 5.14.0-427.35.1.el9_4.x86_64 (mockbuild@iad1-prod-build001.bld.equ.rockylinux.org) (gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3), GNU ld version 2.35.2-43.el9)
Description
When running ./vendor/bin/sail shell to enter the container and then running ls -lah I can see all files are owned by root. This obviously causes a lot of issues, for example when visiting the website we get:
'The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied'
Changing the ownership of the files manually isn't the right sollution because that changes them on the host system aswell which prevents me from updating the files.
Steps To Reproduce
setup podman-compose on a rocky 9 server,
setup a laravel 11 project
(if needed remove laravel/sail)
Install Startap/sail-podman
I then run ./vendor/bin/sail -f docker-compose.yml -f docker-compose.production.yml build --no-cache but just running ./vendor/bin/sail build eventually has the same result
then run either ./vendor/bin/sail -f docker-compose.yml -f docker-compose.production.yml up -d or ./vendor/bin/sail up -d
either access through webpage or run ./vendor/bin/sail shell and in the container then run ls -lah