Need to run a non-root container. I set the securityContext as following:
securityContext:
runAsUser: 33
runAsGroup: 33
Get the error:
Configuring Redis as session handler
/entrypoint.sh: 56: cannot create /usr/local/etc/php/conf.d/redis-session.ini: Permission denied
Of course a non-root can not write to /usr/local/etc/php/conf.d
Source https://github.com/nextcloud/docker/blob/master/22/apache/entrypoint.sh#L77
Need to run a non-root container. I set the
securityContextas following:Get the error:
Of course a non-root can not write to
/usr/local/etc/php/conf.dSource https://github.com/nextcloud/docker/blob/master/22/apache/entrypoint.sh#L77