markdumay / synology-pihole

Install or Update Pi-Hole as Docker Container on a Synology NAS with a Static IP Address
MIT License
55 stars 10 forks source link

Boot error Pi-hole version 2022.01 #22

Open markdumay opened 2 years ago

markdumay commented 2 years ago

The latest Docker version of Pi-hole fails to start correctly. The issue can be found here. The logs show the following error:

[cont-init.d] executing container initialization scripts...
[cont-init.d] 20-start.sh: executing... 
 ::: Starting docker specific checks & setup for docker pihole/pihole
Failed to set capabilities on file `/usr/bin/pihole-FTL' (Operation not supported)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
ERROR: Failed to set capabilities for pihole-FTL. Cannot run as non-root.
[cont-init.d] 20-start.sh: exited 1.
markdumay commented 2 years ago

Adding DNSMASQ_USER: root to the environment temporarily fixes the privilege error. Use the develop branch to add this setting:

git clone https://github.com/markdumay/synology-pihole.git -b develop