Original project:
https://github.com/pi-hole/docker-pi-hole
First, configure the DNS server on the gateway back to 8.8.8.8
sudo nano /etc/resolv.conf
To switch the name server back to 8.8.8.8
sudo docker stop pihole
To stop the container
sudo docker rm pihole
To remove the container
sudo docker pull pihole/pihole:latest
To update the docker image
sudo docker image list
To clean up the local repository
sudo nano /etc/resolv.conf
To switch the name server to the Pi IP
Configure the DNS server on the gateway back to the Pi IP