Unable to connect to Internet using Pihole DHCP

Hi everyone,
So I think I have installed Pihole correctly via docker-compose, In the the router (a connect box) i have the DHCP option disabled because I would like Pihole to do the handling of the DHCP.

The connecting to the router works but then the moment i would like to access a website via Firefox i get the error
"Unable to connect".

The IP of the server where pihole is running on is 192.168.178.198 and is static.

Here is the docker-compose.yml file that I used. If anyone has any tips or tricks please let me know because i have been running in circles for days and its driving me crazy.

  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    networks:
      pihole_network:
        ipv4_address: '192.168.178.149'
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
      - "80:80/tcp"
    environment:
      TZ: 'Europe/Amsterdam' 
      WEBPASSWORD: 'XXXXXX'
    volumes:
      - "/home/dotdelete/pihole/etc/pihole:/etc/pihole"
      - "/home/dotdelete/pihole/etc/dnsmasq.d:/etc/dnsmasq.d"
    cap_add:
      - NET_ADMIN
      - CAP_NET_BIND_SERVICE
      - CAP_SYS_NICE
      - CAP_CHOWN
    restart: unless-stopped

networks:
  pihole_network:
    driver: macvlan
    driver_opts:
      parent: enp3s0
    ipam:
      config:
        - subnet: 192.168.178.0/24
          gateway: 192.168.178.1

Debug Token:

PnLq2axv

DHCP broadcasts are same segment only, so your DHCP server has to be on the same link/network segment/collision domain as its aspiring clients (or you would need a DHCP relay).

Depending on a container's network mode, Docker may isolate a container into its own segment, so client DHCP broadcast would never make it to Pi-hole's DHCP server.

However, in your case, you've opted for Docker's macvlan network driver, which should put the container on the same link as the host.

What kind of network interface as offered by the host machine does Docker tie to?
In particular, would that be an ethernet or a wifi interface?

Are you trying to access the website from the host machine (where docker is running) or from a different machine?

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