Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One-Container solution Not Working #223

Open
Bruzzler0 opened this issue Oct 18, 2023 · 2 comments
Open

One-Container solution Not Working #223

Bruzzler0 opened this issue Oct 18, 2023 · 2 comments

Comments

@Bruzzler0
Copy link

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:
- 443:443/tcp
- 53:53/tcp
- 53:53/udp
- ${PIHOLE_WEBPORT:-80}:80/tcp #Allows use of different port to access pihole web interface when other docker containers use port 80
- 5335:5335/tcp # Uncomment to enable unbound access on local server
# - 22/tcp # Uncomment to enable SSH
environment:
- FTLCONF_LOCAL_IPV4=192.168.0.2
- TZ=Europe/Berlin
- WEBPASSWORD=aaaaaaaa
- WEBTHEME=${WEBTHEME:-default-light}
- REV_SERVER=true
- REV_SERVER_TARGET=192.168.0.1
- REV_SERVER_DOMAIN=local
- REV_SERVER_CIDR=192.168.0.0/24
- PIHOLE_DNS_=127.0.0.1#5335
- DNSSEC="true"
- DNSMASQ_LISTENING=single
volumes:
- etc_pihole-unbound:/etc/pihole:rw
- etc_pihole_dnsmasq-unbound:/etc/dnsmasq.d:rw
restart: unless-stopped

@AverageHoarder
Copy link

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
Copy link

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?

MaHl111 added a commit to MaHl111/docker-pihole-unbound that referenced this issue Dec 27, 2023
Added resolv.conf configuration file to fix chriscrowe#223. Typo in /etc/resolv.conf. 127.0.0.11 instead of *.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants