linuxserver / docker-nginx

GNU General Public License v3.0
141 stars 43 forks source link

[FEAT] Allow me to set PUID and GUID to root. #90

Closed colaH16 closed 1 year ago

colaH16 commented 1 year ago

Is this a new feature request?

Wanted change

If I set the PUID or GUID to 0, I will see the following error. [pool www] please specify user and group other than root add options to run php-fpm with -R options

Reason for change

I am using docker as rootless. Inside the container, a file should be created with uid=0. This will allow me to edit files without sudo on the host.

Proposed code change

No response

github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

colaH16 commented 1 year ago

As an alternative, I set the following in the docker-compose.yml to run as root.

entrypoint: sh -c "sed -i 's|exec /usr/sbin/php-fpm81 -F|exec /usr/sbin/php-fpm81 -FR|g' /etc/s6-overlay/s6-rc.d/svc-php-fpm/run; /init"

aptalca commented 1 year ago

We do not support what you're doing. But you can see this article to see more proper ways to accomplish that: https://www.linuxserver.io/blog/2019-09-14-customizing-our-containers