Closed
Description
Hello there,
Image impacted: 8.1-apache-bookworm
We run your docker images as non root and recently noticed that it isn't possible to run apache2ctl
anymore. I get the following error when trying to run any apache2ctl
command:
apache2ctl -k graceful
chown: changing ownership of '/var/run/apache2/socks.6lWmhC0DVq': Operation not permitted
apache2ctl
has this line of code in it
[ ! -d ${APACHE_RUN_DIR:-/var/run/apache2}/socks ] && mkdir_chown ${APACHE_RUN_USER:-www-data} ${APACHE_RUN_DIR:-/var/run/apache2}/socks
The problem seems to be that the /var/run/socks folder doesn't exist in your image and then apache2ctl
needs root access to create it.
The problem seems to be only in the bookworm
version, the bullseye
version works as expected.
I think creating the folder here would solve the problem
php/8.1/bookworm/apache/Dockerfile
Line 67 in 09e2bdf
Metadata
Metadata
Assignees
Labels
No labels