Docker diginc/pihole:debian Lighttpd not starting error.log permission denied

docker

#1

Has anyone managed to run diginc/pihole:debian on docker successfully? I am trying to run Pihole behind traefik proxy. Traefik appears to be working correctly. But pihole web interface is not starting because lighttpd fails to start with

opening errorlog  '/var/log/lighttpd/error.log' failed: permission denied

I have been trying to get this working for days now. Opened an issue on GitHub but no response in days. Here is my docker-compose file.

https://pastebin.com/xRWiBYBp

Any help would be much appreciated.


#2

#3

What is the output of ls -l /var/log/lighttpd


#4
drwxr-x---+ 2 www-data    www-data    4096 Jan 14  2017 lighttpd

#5

Is that the directory itself, or the contents of it?
What is the output of ls -l /var/log/lighttpd/


#6

Actually guys, I got this working. Due to all the testing and trials my /var/lib/docker folder was all messed up. Stopped docker, deleted the folder, and restarted. I had to recreate my containers from my docker-compose but everything worked after i did this.