Details
If the command pihole flush (or pihole -f) is executed inside a docker container, an error message is generated:
/opt/pihole/piholeLogFlush.sh: line 107: service: command not found
This happens because the v6 container doesn't have a service command and lines 107 and 113 will fail.
How to reproduce the issue
Execute pihole -f inside the container:
piholetest:/# pihole -f
[✓] Flushed /var/log/pihole/pihole.log ...
[✓] Flushed /var/log/pihole/FTL.log ...
[✓] Flushed /var/log/pihole/webserver.log ...
[i] Flushing database, DNS resolution temporarily unavailable .../opt/pihole/piholeLogFlush.sh: line 107: service: command not found
/opt/pihole/piholeLogFlush.sh: line 113: service: command not found
[✓] Deleted queries from long-term query database
These common fixes didn't work for my issue
If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.
Details
If the command
pihole flush(orpihole -f) is executed inside a docker container, an error message is generated:This happens because the v6 container doesn't have a
servicecommand and lines 107 and 113 will fail.How to reproduce the issue
Execute
pihole -finside the container:These common fixes didn't work for my issue
docker runexample(s) in the readme (removing any customizations I added)If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.