I'm sorry if this is too late, but hopefully will help others, here's my workaround to solve the file owner issue, first you have to find-out whats your uid (normaly 1000):
in the terminal type id. The result will be something like:
$ id
uid=1000(roberto) gid=1000(roberto) grou [...]
execute the php service as your uid:gid in your docker-compose.yml
services:
php:
[...]
user: '1000:1000'
[...]
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Files generate in /src folder when execute artisan command inside php container is own by root,
example, running following command
will generate ExampleController.php on host machine and file is own by root.
Any idea how to avoid this?
I'm sorry if this is too late, but hopefully will help others, here's my workaround to solve the file owner issue, first you have to find-out whats your uid (normaly 1000):
id
. The result will be something like:uid:gid
in yourdocker-compose.yml