chriscrowe / docker-pihole-unbound

Run Pi-Hole + Unbound on Docker
1.04k stars 270 forks source link

One-Container solution Not Working #223

Open Bruzzler0 opened 9 months ago

Bruzzler0 commented 9 months ago

hi, i have created a docker after the one container method, however i have error in gravity update. my yml configuration looks like this:

version: '3.0'

volumes: etc_pihole-unbound: etc_pihole_dnsmasq-unbound:

services: pihole: container_name: pihole image: cbcrowe/pihole-unbound:latest hostname: pihole domainname: pihole.local ports:

AverageHoarder commented 9 months ago

I've encountered the same problem in the past. Once the container is up and running, edit the "/etc/resolv.conf" file: nano /etc/resolv.conf for example. And change "nameserver 127.0.0.11" to "nameserver 127.0.0.1". That fixed it in my case.

For more details see this post.

alexauran commented 8 months ago

My .yml is identical with gravity errors.

++ sudo docker exec -it pihole-unbound pihole -b ase.adserver.snapads.com Error: in prepare, no such table: domainlist

2023-11-22T09:22:08.503276475Z [✗] Unable to create gravity database. Please try again later. If the problem persists, please contact support.

Any solutions?