chriscrowe / docker-pihole-unbound

Run Pi-Hole + Unbound on Docker
1.08k stars 286 forks source link

One-Container solution Not Working #223

Open Bruzzler0 opened 1 year ago

Bruzzler0 commented 1 year 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 1 year 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 1 year 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?