Forgetting a password happens to all of us, well perhaps me especially! Fortunately there is an easy way to reset your password. Follow the steps below to reset!
If you are running your Pi-Hole instance in a docker container (like I do) you will have to run the following command:
docker exec -it pihole /bin/bash
This will open a bash shell inside your docker container. Note that this command assumes that your container is called “pihole”. If this isn’t the case, simply change the “pihole” part of the above command to your container name.
Once you are inside the container, run the following command to reset your password:
pihole -a -p yourpassword
Now you should be able to log back into your Pi-Hole web GUI!