Hi, I've used pi-hole successfully on a raspberry pi for some years now, and now trying to run it in a Docker container on a used mac mini to try and simplify my hardware setup. I have some questions, and some notes from my process in case it proves interesting to anyone.
I read the prerequisites and followed the Docker - Pi-hole documentation successfully to start pi-hole in a container. I am new to Docker, so I researched some GUI options, and I am using a GUI called "OrbStack" on the mac mini.
I can see in the GUI that my pi-hole container is reachable via https://pihole.pihole.orb.local/ -- and indeed, if I put that into firefox, I can login to the dashboard.
I first tried to go to https://pi.hole from muscle memory but this did not resolve -- I realize now that the reason it didn't resolve was because the host computer was not yet set up to use pihole DNS.
I also see that the container's "IP address" is "192.168.107.2"
First Question: What is this 192.168.107.2 IP address? And how does it work? I tried pinging it from another device on my network, and the ping didn't go through. However, if I type it into firefox on the host mac mini, it resolves to the pihole container. Is it an IP address on a virtual network interface created by the Docker software which only exists within the host computer?
Ordinarily, if I were running pihole on a raspberry pi, I would follow the post-install steps to see if pihole is working on the local computer, and then try setting up other devices to use it.
If I go into the mac's network settings, and set the DNS to 127.0.0.1 and ::1, per the post-install steps (and I am guessing that it is appropriate to add ::1 for ipv6), then, indeed, the mac seems to use the pihole for DNS. In the client log, I see suspicious lookups from 192.168.107.1, 192.168.107.2, localhost and ::1 . For example, www.skjdhfjasdhk.shop and mobilewhack.us.intellitxt.com . Maybe these are from the pihole diagnosis script? Or just background undesirable lookups some software on the mac is doing?
Question: Does 192.168.107.1 correspond to the "host" Mac OS? Or something else?
Per the warning on the post-install steps page, if pihole fails in some way, I will need to change my DNS settings on the host mac OS to a working DNS provider in order to connect to the internet or repair pihole.
It looks like I can visit the mac mini's IP local address on from other devices on my LAN, and access the pihole admin dashboard from these other devices. So that implies to me that I'm good to go pointing the router or other devices to that mac mini's LAN IPv4 and IPv6 addresses.
Is there anything else I need to know about running pihole in a Docker and connecting from other devices in my home network?
Thank you for your patience with what must be basic questions. I followed the instructions in a different post and generated a debug token just in case: https://tricorder.pi-hole.net/J7qzdX7y/
Thank you in advance!
-P
EDIT: I have discovered that no matter which client is connecting, the Query Log always shows the IP address 192.168.107.1 . I suppose this is because all queries are routed through the host OS IP address before getting to the container via the virtual network interface.