Client IP addresses not showing as 192.168.1.x but instead an internal Docker IP

I thought you did use host mode with your v5 container?

It works!! thank you so much. This was driving me crazy trying to fix yesterday.

I did, but the ports were listed also below was my V5 compose.

  pihole:
    image: pihole/pihole:latest
    container_name: pihole
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "80:80/tcp"
      - "443:443/tcp"
    cap_add:
      - CAP_NET_RAW
      - CAP_NET_BIND_SERVICE
      - CAP_CHOWN
      - CAP_SYS_TIME
      - CAP_SYS_NICE
      - NET_ADMIN
    environment:
      - PIHOLE_UID=1000 #CHANGE_TO_YOUR_UID
      - PIHOLE_GID=1000 #CHANGE_TO_YOUR_GID
      - TZ=Europe/Dublin #CHANGE_TO_YOUR_TZ
      - WEBPASSWORD=
      - DNSMASQ_LISTENING=local
      - WEB_PORT=8050
      - DNSMASQ_USER=root
    volumes:
      - /volume2/docker/pihole/dnsmasq.d:/etc/dnsmasq.d
      - /volume2/docker/pihole/pihole:/etc/pihole
    network_mode: host
    restart: unless-stopped

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.