Please follow the below template, it will help us to help you!
Expected Behaviour:
I was able to get Pi-hole up and running on my Mac with the latest version of Docker using a script from ChatGPT
Actual Behaviour:
I accidentally deleted that container and I can't get it up and running again I can get into the localhost dashboard but it seems there is an issue with the ports or the DNS I really do not know - and ChatGPT just goes around in circles. I guess I am looking for the easiest way to scratch everything and start fresh with a simple terminal script or something like that. Thanks in advance!
Debug Token:
Replace this text with the debug token provided from running pihole -d
What a surprise, ChatGPT had you, or itself going in circles. Anyhow.
Have a look here https://pi-hole.net/. Notice that pretty much at the top of the page is a button related to installing Pi-hole in Docker. Give that a go, thinking instead of crossing your fingers and relying on likely incorrect/useless information.
My assumption is that the Pi-hole folks have better things to do than baby sitting a mess create by “AI”. Yeah, you might be correct in thinking I am not a fan.
Thanks again for the tips - lesson learned for sure.
I installed pi-hole from a .yml based on the one on Github that I was directed to by jfb (but cannot use @ to quote because I am a new user) to and I received the following error in terminal as well as when I tried to start pi-hole:
(HTTP code 500) server error - ports are not available: exposing port UDP 0.0.0.0:5353 -> 127.0.0.1:0: listen udp 0.0.0.0:5353: bind: address already in use
Again, I am using a Mac if that makes a difference.
I think I have it up and running it boots up no problems and I can access the dashboard but no DNS setting that I have tried has been successful in any blocks or queries - I tried my computer, the router, 127.0.0.1 to no avail. What am I missing? I feel like we are so close.
Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
Looking back it seems that when it did work one time it had something to do with using dnsmasq but I do not remember how or what I did with that. does this help in solving the problem?
The general fault-finding approach is to set Pi-hole up and test it can resolve domains itself.
Then check from a client, which you believe should be using Pi-hole, that it is indeed using Pi-hole as standard. And also check that the client is able to use Pi-hole when you explicitly ask it to, and that Pi-hole returns the expected response and shows the Query.
Much of the time Pi-hole can be sitting there working perfectly, but the rest of the local network is not telling anything to use it, and so that becomes a separate networking problem and technically nothing to do with Pi-hole. Often that's caused by the DHCP server giving out multiple DNS servers for clients to use and they are able to work around it, hence that "check from a client" part above.
The previous debug log has expired (they are deleted after 48 hours), can you create a new one please and post the token URL.
Your debug log shows the container is running, but logs generated inside a container can't tell of it wrong on the host.
Please post here the compose file used to start your container.
Note:
Yes, it does.
Usually is a lot easier to run Pi-hole (or any other docker container) on a Linux machine.
Docker on Mac/Windows (actually "Docker Desktop") runs inside a special Virtual Machine and that VM runs inside your MacOS. This creates an extra network layer, making the settings a lot more complex. Also, some docker options only work on Linux.
You used the Pi-hole compose file, but I was explaining the difference between Linux and MacOS docker versions.
You asked:
And I explained there are a few differences between Linux (docker) and MacOS (Docker Desktop).
Running Pi-hole compose file in a Linux machine will be probably different than running the same compose file in a MacOS machine, specially the network configuration.
I'm not sure what the issue is, as far as I know, the IP 192.168.65.1 is the IP of the Docker Desktop VM.
I think you will need to wait for someone with Docker Desktop expertise to help you with the network settings.