Non-root container and APACHE_DISABLE_REWRITE_IP cause "Could not remove /etc/apache2/conf-enabled/remoteip.conf: Permission denied" #1494
Labels
feature: auto config (environment variables)
Auto configuring via environment variables
rootless
Running in Docker w/o root
wontfix
I've been trying to get this image working and I've run into a snag. I want to use my own account internally so that the files created by the docker are owned and manageable by my user so I've included the
user
directive in the docker-compose. However, I also need to use theAPACHE_DISABLE_REWRITE_IP
environment keyword to make the docker work in my network topology. I have found that when I use theuser
directive and theAPACHE_DISABLE_REWRITE_IP=1
environment definition the docker container fails to start only reporting this log entry:Here is what my simplified docker-compose looks like:
If I comment out either the
user: 1000:100
OR the- APACHE_DISABLE_REWRITE_IP=1
the docker container starts up fine.I found some instances where people were using
APACHE_RUN_USER
andAPACHE_RUN_GROUP
but defining those didn't seem to help.The text was updated successfully, but these errors were encountered: