How to run as root user? #533
Answered by jaydrogers
robsontenorio asked this question in Q&A
-
| I am trying to start the container as the root user. How to do it? Dockerfile Logs |
Beta Was this translation helpful? Give feedback.
Answered by jaydrogers May 13, 2025
Replies: 2 comments
-
| Try this: FROM ... USER root RUN echo "user = www-data" >> /usr/local/etc/php-fpm.d/docker-php-serversideup-pool.conf && \ echo "group = www-data" >> /usr/local/etc/php-fpm.d/docker-php-serversideup-pool.confFPM needs a user other than root when you start it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by robsontenorio
-
| Thanks @jaydrogers ! Actually, a line break was needed; otherwise, it fails to start up. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Try this:
FPM needs a user other than root when you start it.