APP: PiHole (Docker)

Home Forums PeppermintOS 10 Respin APP: PiHole (Docker)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #45


    Pull the official Pihole Image
    sudo docker pull pihole/pihole

    Verify it downloaded by listing the docker images
    sudo docker images

    Disabled Resolved
    sudo systemctl disable systemd-resolved.service

    Stop Resolved
    sudo systemctl stop systemd-resolved

    Change the Nameserver
    sudo nano /etc/resolv.conf

    sudo systemctl daemon-reload
    sudo systemctl restart docker
    sudo docker pull pihole/pihole

    sudo apt update

    sudo apt upgrade

    sudo nano

    Paste the settings for the

    docker run -d \
        --name pihole \
        -p 53:53/tcp -p 53:53/udp \
        -p 80:80 \
        -p 443:443 \
        -p 8080:8080 \
        -e TZ="America/Chicago" \
        -v "$(pwd)/etc-pihole/:/etc/pihole/" \
        -v "$(pwd)/etc-dnsmasq.d/:/etc/dnsmasq.d/" \
        --dns= --dns= \
        --restart=unless-stopped \
    printf 'Starting up pihole container '
    for i in $(seq 1 20); do
        if [ "$(docker inspect -f "{{.State.Health.Status}}" pihole)" == "healthy" ] ; then
            printf ' OK'
            echo -e "\n$(docker logs pihole 2> /dev/null | grep 'password:') for your pi-hole: https://${IP}/admin/"
            exit 0
            sleep 3
            printf '.'
        if [ $i -eq 20 ] ; then
            echo -e "\nTimed out waiting for Pi-hole start, consult check your container logs for more info (\docker logs pihole\)"
            exit 1
    © 2020 GitHub, Inc.

    Allow the script to be executed
    sudo chmod u+x

    Run the script
    sudo ./

    Force in Root
    sudo docker exec -it pihole bash

    Change the Password
    pihole -a -p

    • This topic was modified 6 days ago by Voodoo.

    Once PiHole is installed, go ahead and under Settings and under the DNS tab, ensure that you select your DNS provider. I choose Cloudflare.

    I also go under Settings and to the Blocklists tab and add the following:
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.