Skip to content

How to run as root user? #533

Answered by jaydrogers
robsontenorio asked this question in Q&A
Discussion options

You must be logged in to vote

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.conf

FPM needs a user other than root when you start it.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by robsontenorio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants