Posts by jofen

    Hi, trying to run pi-hole on docker.

    Hardware: Lenovo thinkcenter M93

    OMV5


    Using:


    version: "3"


    services:

    pihole:

    container_name: pihole

    image: pihole/pihole:v5.7-amd64-buster

    ports:

    - "53:53/tcp"

    - "53:53/udp"

    - "67:67/udp"

    - "80:80/tcp"

    environment:

    TZ: 'Europe/London'

    WEBPASSWORD: 'secret'

    volumes:

    - './etc-pihole/:/etc/pihole/'

    - './etc-dnsmasq.d/:/etc/dnsmasq.d/'

    cap_add:

    - NET_ADMIN

    restart: unless-stopped


    Tried different images but always the same error.


    Existing DNS servers detected in setupVars.conf. Leaving them alone

    ::: Pre existing WEBPASSWORD found

    DNSMasq binding to default interface: eth0

    Added ENV to php:

    "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",

    "ServerIP" => "0.0.0.0",

    "VIRTUAL_HOST" => "0.0.0.0",

    Using IPv4 and IPv6

    ::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))

    https://raw.githubusercontent.…nBlack/hosts/master/hosts

    sudo: unable to open /etc/sudoers: Permission denied

    sudo: no valid sudoers sources found, quitting

    sudo: unable to initialize policy plugin

    ::: Testing pihole-FTL DNS: [cont-init.d] 20-start.sh: exited 1.

    [cont-finish.d] executing container finish scripts...

    [cont-finish.d] done.

    [s6-finish] waiting for services.

    [s6-finish] sending all processes the TERM signal.

    [s6-finish] sending all processes the KILL signal and exiting.


    Please advise to correct this error.

    Thanks

    That is one of the drawbacks of using macvtap. If you want to be able to ssh from host to guest, you will need to setup a bridge network adapter (not in the plugin) and then the network adapter type on the VM will have to be changed to bridge that uses the newly created bridge interface. I think that is a pain myself and never have a need to ssh from the host to the VM. I just ssh from the machine that I ssh to the host from.

    Thanks, Ok I have another solution. I thought It was something i was missing. Thank you.