pihole in docker

  • hi there. im strugeling to setup pihole in docker. im curently running a pi5, 8gb of ram and have omv running on it. im not sure what is causing the issues but i cant access pihole when im running it in docker through mcvlan. i can run it on my pi nativly without omv but when trying through docker it runs but i cant access it. docker its self is working i can run folding on my pi through docker and the machene shows up fine. one thing i did notice was that on pihole its not being assigned ports where as folding at home is. but on fing im finding a new generic device with the ip address i assigned to pihole.


  • Is well know a limitation in docker desing that other dockers can't reach pi-hole docker, but other devices on your LAN can, it's by desing.



  • Is well know a limitation in docker desing that other dockers can't reach pi-hole docker, but other devices on your LAN can, it's by desing.

    You can configure a macvlan-proxy IP address and reach the macvlan address this way:

    Add this to your /etc/network/interface file.

    In the above example:

    192.168.10.202 is your IP proxy address.

    192.168.10.238 is the macvlanaddress you want to reach.

    Code
    # Interface bridge pour la communication Hôte <-> Docker Macvlan
    auto macvlan-proxy
    iface macvlan-proxy inet static
      address 192.168.10.202/24
      pre-up ip link add macvlan-proxy link eth0 type macvlan mode bridge
      # Route spécifique vers la plage d'IP de vos conteneurs
      up ip route add 192.168.10.238/32 dev macvlan-proxy
      post-down ip link del macvlan-proxy

    1 x Dell R720XD PowerEdge, with Debian 13+OpenMediaVault

    2 x 1TB nvme for raid1+btrfs system

    10Gbit network (SFP+)

    11 x 10Tb SAS drives + 1 spare drive (running) in zraid3 + 3 additional spares (not running)

    2 x 800GB SSD drives (unused)

    1 x LSI SAS2308 PCI-Express Fusion-MPT SAS-2 controller card in mini-mono format

    256Go RAM

    1 x APC RT2000XL UPS with 1 x SNMP APC 9631 card
    3 x Rpi 5-CM with nvme systems

    Edited once, last by C-3PO ().

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!