Posts by jofen

    Hi, trying to run pi-hole on docker.

    Hardware: Lenovo thinkcenter M93



    version: "3"



    container_name: pihole

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


    - "53:53/tcp"

    - "53:53/udp"

    - "67:67/udp"

    - "80:80/tcp"


    TZ: 'Europe/London'

    WEBPASSWORD: 'secret'


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

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



    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" => "",

    "VIRTUAL_HOST" => "",

    Using IPv4 and IPv6

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


    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] 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.


    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.