The /etc/resolve.conf inside Pi-Hole docker container looks like this and thus it doesn’t work and does not download or update Gravity. Can someone please fix this inside the docker image or YAML file. Looks like we have an extra 1!
root@7a7bed7f73f6:/etc# cat resolv.conf
nameserver 127.0.0.11
options ndots:0
I couldn’t find an editor inside the docker image, but I did this to fix it temporarily until the update is out:
Get the ID of your Docker process:
docker ps | grep pi-hole
7a7bed7f73f6 pihole/pihole:2022.07.1 “/s6-init” 33 minutes ago Up 33 minutes (healthy) 53/tcp, 80/tcp, 0.0.0.0:53->53/udp, :::53->53/udp, 67/udp, 0.0.0.0:49154->3233/tcp, :::49154->3233/tcp pi-hole_server_1
Run a shell on your docker image:
docker exec -it 7a7bed7f73f6 /bin/bash
cd /etc
cat ./resolv.conf
Now we overwrite resolv.conf with the correct IP address:
echo “nameserver 127.0.0.1
options ndots:0” > resolv.conf
cat ./resolv.conf
nameserver 127.0.0.1
options ndots:0
Now run Gravity Update and it works just fine.