# docker

**URL:** https://discourse.pi-hole.net/c/bugs-problems-issues/docker/30.md

[Latest](https://discourse.pi-hole.net/latest.md) · [Categories](https://discourse.pi-hole.net/categories.md) · [Tags](https://discourse.pi-hole.net/tags.md)

---

## [About the docker category](https://discourse.pi-hole.net/t/about-the-docker-category/16022)

<div class="topic-metadata">

**Author:** [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Replies:** 0

</div>

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters. Until you edit this description or create top…

---

## [I can't connect to the internet through Pihole (Android - Wi-Fi)](https://discourse.pi-hole.net/t/i-cant-connect-to-the-internet-through-pihole-android-wi-fi/84231)

<div class="topic-metadata">

**Author:** [@xJulian](https://discourse.pi-hole.net/u/xJulian)\
**Replies:** 4\
**Last updated:** [October 11, 2026, 10:18am UTC](https://discourse.pi-hole.net/t/i-cant-connect-to-the-internet-through-pihole-android-wi-fi/84231 "2026-10-11T10:18:11Z")

</div>

Hi, I hope this is the right category. First of all, I'm new to this. I have a superficial understanding and I've followed tutorials to install Pi-hole using Docker and combined it with Wireguard. Everything seems to wo…

---

## [Docker Post-Install Instructions -- Now What?](https://discourse.pi-hole.net/t/docker-post-install-instructions-now-what/87728)

<div class="topic-metadata">

**Author:** [@phix1](https://discourse.pi-hole.net/u/phix1)\
**Replies:** 3\
**Last updated:** [September 25, 2026, 3:44am UTC](https://discourse.pi-hole.net/t/docker-post-install-instructions-now-what/87728 "2026-09-25T03:44:13Z")

</div>

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…

---

## [What am I doing wrong? - Newbie](https://discourse.pi-hole.net/t/what-am-i-doing-wrong-newbie/87334)

<div class="topic-metadata">

**Author:** [@Aiden](https://discourse.pi-hole.net/u/Aiden)\
**Replies:** 1\
**Last updated:** [August 20, 2026, 5:32pm UTC](https://discourse.pi-hole.net/t/what-am-i-doing-wrong-newbie/87334 "2026-08-20T17:32:58Z")

</div>

Hi all, So I've never installed pihole before and I'm needing some guidance. I cant seem to log into pihole, I keep getting: This site can’t be reached 192.xxx.x.xxx refused to connect. Try: Checking the connection C…

---

## [DHCP Server not self-discovering](https://discourse.pi-hole.net/t/dhcp-server-not-self-discovering/87162)

<div class="topic-metadata">

**Author:** [@Coder](https://discourse.pi-hole.net/u/Coder)\
**Replies:** 2\
**Last updated:** [August 8, 2026, 6:56pm UTC](https://discourse.pi-hole.net/t/dhcp-server-not-self-discovering/87162 "2026-08-08T18:56:45Z")

</div>

Looking for some help debugging. I've got a containerized Pi-hole running with network\_mode: host that I've been using as my DHCP and local DNS servers for a few weeks. I'm migrating the container to a new machine- whic…

---

## [How to make Piholes in container with macvlan, high available with Keepalived?](https://discourse.pi-hole.net/t/how-to-make-piholes-in-container-with-macvlan-high-available-with-keepalived/82399)

<div class="topic-metadata">

**Author:** [@radoeka](https://discourse.pi-hole.net/u/radoeka)\
**Replies:** 10\
**Last updated:** [July 15, 2026, 5:31am UTC](https://discourse.pi-hole.net/t/how-to-make-piholes-in-container-with-macvlan-high-available-with-keepalived/82399 "2026-07-15T05:31:23Z")

</div>

Hi, is it possible to make 2 Piholes running in a container with macvlan network on 2 different Raspberry PI5s high available (HA) with Keepalived? I know it maybe sufficient to configure the 2 different Pihole IP addre…

---

## [Pi-hole docker container with image pihole/pihole:latest not working on QNAP NAS TS-231P3, Exit code 139 ](https://discourse.pi-hole.net/t/pi-hole-docker-container-with-image-pihole-pihole-latest-not-working-on-qnap-nas-ts-231p3-exit-code-139/78677)

<div class="topic-metadata">

**Author:** [@s0lution](https://discourse.pi-hole.net/u/s0lution)\
**Replies:** 3\
**Last updated:** [July 7, 2026, 3:48pm UTC](https://discourse.pi-hole.net/t/pi-hole-docker-container-with-image-pihole-pihole-latest-not-working-on-qnap-nas-ts-231p3-exit-code-139/78677 "2026-07-07T15:48:46Z")

</div>

When i start the container it is immediately stopped with Exit code 139. The container that comes with the "officially" QNAP Pi-hole "app" (composed docker container) with image version pihole/pihole:2022.12.1 is working…

---

## [Kann mir jemand dabei helfen?](https://discourse.pi-hole.net/t/kann-mir-jemand-dabei-helfen/86051)

<div class="topic-metadata">

**Author:** [@\_Novum](https://discourse.pi-hole.net/u/_Novum)\
**Replies:** 1\
**Last updated:** [May 9, 2026, 4:01pm UTC](https://discourse.pi-hole.net/t/kann-mir-jemand-dabei-helfen/86051 "2026-05-09T16:01:09Z")

</div>

---

## [Pi-hole unable to connect to dns server but dns server is pingable](https://discourse.pi-hole.net/t/pi-hole-unable-to-connect-to-dns-server-but-dns-server-is-pingable/85436)

<div class="topic-metadata">

**Author:** [@getblocked](https://discourse.pi-hole.net/u/getblocked)\
**Replies:** 2\
**Last updated:** [March 18, 2026, 1:33am UTC](https://discourse.pi-hole.net/t/pi-hole-unable-to-connect-to-dns-server-but-dns-server-is-pingable/85436 "2026-03-18T01:33:11Z")

</div>

Expected Behaviour: I have pi.hole linked with my wireguard VPN and usually everything will connect to the internet and pi.hole has no trouble blocking ads. Raspberry Pi 4b 4gb ram wireguard version is wireguard-tools …

---

## [How to run "pihole -g" when pihole is a container](https://discourse.pi-hole.net/t/how-to-run-pihole-g-when-pihole-is-a-container/38968)

<div class="topic-metadata">

**Author:** [@SemperFi](https://discourse.pi-hole.net/u/SemperFi)\
**Replies:** 16\
**Last updated:** [March 9, 2026, 12:47am UTC](https://discourse.pi-hole.net/t/how-to-run-pihole-g-when-pihole-is-a-container/38968 "2026-03-09T00:47:24Z")

</div>

I use Portainer to run pihole on my Raspberry Pi. Under Group Management -\> Adlists, the instructions note that the gravity database can be updated by typing "pihole -g" I'd like to run this as a crontab but I'm not su…

---

## [Pihole is working but host has no internet connection](https://discourse.pi-hole.net/t/pihole-is-working-but-host-has-no-internet-connection/68264)

<div class="topic-metadata">

**Author:** [@MiCado](https://discourse.pi-hole.net/u/MiCado)\
**Replies:** 5\
**Last updated:** [January 31, 2026, 9:35am UTC](https://discourse.pi-hole.net/t/pihole-is-working-but-host-has-no-internet-connection/68264 "2026-01-31T09:35:03Z")

</div>

Hello, I replaced my old raspberry and thought it might be an good idea to do the new implementation in a docker / Portainer environment. Just not as easy as I thought. I did the installation with adjusted yaml files a…

---

## [Not returning ips of Local DNS records](https://discourse.pi-hole.net/t/not-returning-ips-of-local-dns-records/84560)

<div class="topic-metadata">

**Author:** [@Tyson\_VanOverhill](https://discourse.pi-hole.net/u/Tyson_VanOverhill)\
**Replies:** 2\
**Last updated:** [January 14, 2026, 6:41am UTC](https://discourse.pi-hole.net/t/not-returning-ips-of-local-dns-records/84560 "2026-01-14T06:41:51Z")

</div>

I have a fresh install of pihole set up in a docker container in an Ubuntu droplet at Digital Ocean. I have logged in for the first time, set the password, and set a local DNS record for a server in my local network. whe…

---

## [\[last v5 version\] \[docker\] Adlist not adding](https://discourse.pi-hole.net/t/last-v5-version-docker-adlist-not-adding/84466)

<div class="topic-metadata">

**Author:** [@rlyvision](https://discourse.pi-hole.net/u/rlyvision)\
**Replies:** 1\
**Last updated:** [January 8, 2026, 6:18pm UTC](https://discourse.pi-hole.net/t/last-v5-version-docker-adlist-not-adding/84466 "2026-01-08T18:18:42Z")

</div>

Replace this text with what you think should be happening. Please include as much detail relevant to your system/install as possible including, but not limited to: postmarket OS v25.12 my galaxy j5 sm-j500f services: …

---

## [Conditional forwarding](https://discourse.pi-hole.net/t/conditional-forwarding/83976)

<div class="topic-metadata">

**Author:** [@4o1ro](https://discourse.pi-hole.net/u/4o1ro)\
**Replies:** 1\
**Last updated:** [December 14, 2025, 12:59am UTC](https://discourse.pi-hole.net/t/conditional-forwarding/83976 "2025-12-14T00:59:59Z")

</div>

Expected Behaviour: I want to setup conditional forwarding, in the little box below the option I put true,192.168.50.0/24,192.168.50.1 192.168.50.1 Is my router gateway Its running on a synology nas, with a 4 core cpu…

---

## [Pihole not sending DHCP lease to devices on network.](https://discourse.pi-hole.net/t/pihole-not-sending-dhcp-lease-to-devices-on-network/83937)

<div class="topic-metadata">

**Author:** [@The\_Pretender](https://discourse.pi-hole.net/u/The_Pretender)\
**Replies:** 3\
**Last updated:** [December 12, 2025, 10:26pm UTC](https://discourse.pi-hole.net/t/pihole-not-sending-dhcp-lease-to-devices-on-network/83937 "2025-12-12T22:26:19Z")

</div>

I have an AT&T Router that does not allow changing the DNS of the router itself, so I’m trying out the DHCP solution I’ve found in my research. I’m running my Pihole on Docker on my previous Windows PC that I am now usin…

---

## [Pihole v6 webgui behind Traefik](https://discourse.pi-hole.net/t/pihole-v6-webgui-behind-traefik/77276)

<div class="topic-metadata">

**Author:** [@papalozarou](https://discourse.pi-hole.net/u/papalozarou)\
**Replies:** 9\
**Last updated:** [December 6, 2025, 3:25pm UTC](https://discourse.pi-hole.net/t/pihole-v6-webgui-behind-traefik/77276 "2025-12-06T15:25:15Z")

</div>

Have just spent the last three and a half hours tearing my hair out trying to make this work. Am migrating from v5. If I leave the default ports alone, trying to hit the url times out. If I change the port of Pihole via…

---

## [How do I configure what the URL pi.hole resolves to?](https://discourse.pi-hole.net/t/how-do-i-configure-what-the-url-pi-hole-resolves-to/81277)

<div class="topic-metadata">

**Author:** [@jabaa](https://discourse.pi-hole.net/u/jabaa)\
**Replies:** 3\
**Last updated:** [December 5, 2025, 12:25am UTC](https://discourse.pi-hole.net/t/how-do-i-configure-what-the-url-pi-hole-resolves-to/81277 "2025-12-05T00:25:14Z")

</div>

Hi, I'm running Pi-Hole in a Docker container and I've configured it as DNS. I'd like to use https://pi.hole/admin/login to login into the web interface. It works, when I try it from the host of the Docker container, bu…

---

## [Pihole is blocking google](https://discourse.pi-hole.net/t/pihole-is-blocking-google/78132)

<div class="topic-metadata">

**Author:** [@actinium226](https://discourse.pi-hole.net/u/actinium226)\
**Replies:** 3\
**Last updated:** [November 29, 2025, 7:34pm UTC](https://discourse.pi-hole.net/t/pihole-is-blocking-google/78132 "2025-11-29T19:34:05Z")

</div>

Expected Behaviour: ping www.google.com should work Actual Behaviour: It tries to ping 192.0.0.88 Debugging so far pihole -q www.google.com shows 0 domains or adlists matching www.google.com pinging google from th…

---

## [Fresh Docker container installation not working](https://discourse.pi-hole.net/t/fresh-docker-container-installation-not-working/82662)

<div class="topic-metadata">

**Author:** [@chango](https://discourse.pi-hole.net/u/chango)\
**Replies:** 7\
**Last updated:** [November 25, 2025, 2:22am UTC](https://discourse.pi-hole.net/t/fresh-docker-container-installation-not-working/82662 "2025-11-25T02:22:14Z")

</div>

Expected: A working fresh installation of Pi-hole in Docker. Actual: Container never fails to properly start, showing a permissions error. Platform: Debian 13.1, Docker 28.4.0, Intel Coffee-Lake refresh, docker image 2…

---

## [SHMEM RAM shortage (/dev/shm)](https://discourse.pi-hole.net/t/shmem-ram-shortage-dev-shm/59004)

<div class="topic-metadata">

**Author:** [@U3238](https://discourse.pi-hole.net/u/U3238)\
**Replies:** 7\
**Last updated:** [November 5, 2025, 11:59am UTC](https://discourse.pi-hole.net/t/shmem-ram-shortage-dev-shm/59004 "2025-11-05T11:59:20Z")

</div>

How do I increase SHMEM/SHM RAM storage? SHMEM RAM shortage (/dev/shm) /dev/shm: 66.9MB used, 67.1MB total, FTL uses 66.9MB Docker PiHole Debug log below Moderator edit: explicit debug log removed - we just reques…

---

## [No internet DHCP working truenas scale](https://discourse.pi-hole.net/t/no-internet-dhcp-working-truenas-scale/82956)

<div class="topic-metadata">

**Author:** [@FrostApple](https://discourse.pi-hole.net/u/FrostApple)\
**Replies:** 1\
**Last updated:** [October 24, 2025, 5:13pm UTC](https://discourse.pi-hole.net/t/no-internet-dhcp-working-truenas-scale/82956 "2025-10-24T17:13:11Z")

</div>

Hello, Currently I am using truenas scale with pi hole. I need to use dhcp because I have a bell modem and I have dhcp working but I can’t get access to the internet. New to this so please ask for information that I mis…

---

## [Docker install with IP (v4 & v6) of hosts subnet](https://discourse.pi-hole.net/t/docker-install-with-ip-v4-v6-of-hosts-subnet/82945)

<div class="topic-metadata">

**Author:** [@Rumbelstilzchen](https://discourse.pi-hole.net/u/Rumbelstilzchen)\
**Replies:** 0\
**Last updated:** [October 22, 2025, 8:00pm UTC](https://discourse.pi-hole.net/t/docker-install-with-ip-v4-v6-of-hosts-subnet/82945 "2025-10-22T20:00:24Z")

</div>

I wanted to have PiHole within the same subnet as my other devices and I wanted to have it within docker. This is my docker compose file I came up with: services: pihole: container\_name: pihole image: pihole/…

---

## [Pihole keeps on listening on and hosts web server to 0.0.0.0](https://discourse.pi-hole.net/t/pihole-keeps-on-listening-on-and-hosts-web-server-to-0-0-0-0/82916)

<div class="topic-metadata">

**Author:** [@minimiscus](https://discourse.pi-hole.net/u/minimiscus)\
**Replies:** 9\
**Last updated:** [October 22, 2025, 5:10pm UTC](https://discourse.pi-hole.net/t/pihole-keeps-on-listening-on-and-hosts-web-server-to-0-0-0-0/82916 "2025-10-22T17:10:15Z")

</div>

Hi there, for some reason my Docker install now wants to listen on 0.0.0.0 instead of the IP it should be using, 192.168.4.XXX (last 3 digits omitted) on host networking mode. The system that is being used is an iMac mi…

---

## [DNS queries not working running in docker container](https://discourse.pi-hole.net/t/dns-queries-not-working-running-in-docker-container/82758)

<div class="topic-metadata">

**Author:** [@irrgent](https://discourse.pi-hole.net/u/irrgent)\
**Replies:** 2\
**Last updated:** [October 13, 2025, 3:57am UTC](https://discourse.pi-hole.net/t/dns-queries-not-working-running-in-docker-container/82758 "2025-10-13T03:57:28Z")

</div>

Hi all, I am having issues with DNS queries timing out while running pihole in a docker container using the official docker-compose file. DNS queries simply time out but am able to access the web UI without any issues. S…

---

## [When docker Pihole is running on NAS and router DNS is pointed to the Pihole IP the NAS loses internet connection](https://discourse.pi-hole.net/t/when-docker-pihole-is-running-on-nas-and-router-dns-is-pointed-to-the-pihole-ip-the-nas-loses-internet-connection/82380)

<div class="topic-metadata">

**Author:** [@brownan](https://discourse.pi-hole.net/u/brownan)\
**Replies:** 5\
**Last updated:** [September 20, 2025, 8:16pm UTC](https://discourse.pi-hole.net/t/when-docker-pihole-is-running-on-nas-and-router-dns-is-pointed-to-the-pihole-ip-the-nas-loses-internet-connection/82380 "2025-09-20T20:16:27Z")

</div>

Expected Behaviour: The expected behaviour is that when my router’s DNS is set to the IP address of the Pihole container that the host won’t lose internet connection Operating System: UGOS Hardware: UGREEN DXP4800…

---

## [DNS in not changing](https://discourse.pi-hole.net/t/dns-in-not-changing/82261)

<div class="topic-metadata">

**Author:** [@Ashwin\_Raviraj](https://discourse.pi-hole.net/u/Ashwin_Raviraj)\
**Replies:** 1\
**Last updated:** [September 15, 2025, 5:56am UTC](https://discourse.pi-hole.net/t/dns-in-not-changing/82261 "2025-09-15T05:56:02Z")

</div>

Hi everyone, I have set up pi-hole on my QNAP, i have changed the DNS primary on my Router to my pi-hole, but when i ping google, with nslookup google.com i set get the router. I can see that everything is getting thro…

---

## [How to use HTTP/HTTPS proxy inside Pi-hole Docker container (network restrictions in China)](https://discourse.pi-hole.net/t/how-to-use-http-https-proxy-inside-pi-hole-docker-container-network-restrictions-in-china/82154)

<div class="topic-metadata">

**Author:** [@nan-mu](https://discourse.pi-hole.net/u/nan-mu)\
**Replies:** 1\
**Last updated:** [September 5, 2025, 4:02pm UTC](https://discourse.pi-hole.net/t/how-to-use-http-https-proxy-inside-pi-hole-docker-container-network-restrictions-in-china/82154 "2025-09-05T16:02:06Z")

</div>

Hi everyone, When running Pi-hole inside Docker, I encountered errors when the container tries to fetch from GitHub: fatal: unable to access 'https://github.com/pi-hole/pi-hole/': Failed to connect to github.com port 4…

---

## [webserver interface not working](https://discourse.pi-hole.net/t/webserver-interface-not-working/81885)

<div class="topic-metadata">

**Author:** [@rover0](https://discourse.pi-hole.net/u/rover0)\
**Replies:** 4\
**Last updated:** [August 24, 2025, 1:23am UTC](https://discourse.pi-hole.net/t/webserver-interface-not-working/81885 "2025-08-24T01:23:56Z")

</div>

I have just installed pi-hole with the standard docker image. The web interface was working perfectly, then now it does not load at all. Restarting containers does not help. What can I do to solve this?

---

## [Changing web port when using Docker](https://discourse.pi-hole.net/t/changing-web-port-when-using-docker/71336)

<div class="topic-metadata">

**Author:** [@sombrafam](https://discourse.pi-hole.net/u/sombrafam)\
**Replies:** 10\
**Last updated:** [August 10, 2025, 10:19pm UTC](https://discourse.pi-hole.net/t/changing-web-port-when-using-docker/71336 "2025-08-10T22:19:20Z")

</div>

How do I configure lighttpd.conf if I'm using docker? I didn't see any options to set it there.

---

## [Pi-hole Docker does not show Wireguard Peers as Clients](https://discourse.pi-hole.net/t/pi-hole-docker-does-not-show-wireguard-peers-as-clients/54365)

<div class="topic-metadata">

**Author:** [@frantzisko](https://discourse.pi-hole.net/u/frantzisko)\
**Replies:** 3\
**Last updated:** [July 25, 2025, 7:25am UTC](https://discourse.pi-hole.net/t/pi-hole-docker-does-not-show-wireguard-peers-as-clients/54365 "2025-07-25T07:25:19Z")

</div>

I am pretty new using docker and I am migrating my pivpn-pihole services to docker and everything is working as expected But Pi-hole does not show the Wireguard Peers as clients, I have tried creating the DNS entry in t…

[Next page](https://discourse.pi-hole.net/c/bugs-problems-issues/docker/30.md?page=1)
