Skip to content

Instantly share code, notes, and snippets.

@purneshwar
Created July 8, 2019 23:49
Show Gist options
  • Save purneshwar/0fed94a0bf477bd7ffac8e241f75a111 to your computer and use it in GitHub Desktop.
Save purneshwar/0fed94a0bf477bd7ffac8e241f75a111 to your computer and use it in GitHub Desktop.
Run Pi Hole on QNAP ContainerStation

Create a Static IP

docker network create -d qnet --ipam-driver=qnet --ipam-opt=iface=eth0 --subnet=192.168.0.1/24 --gateway=192.168.0.1 docker-static-bridge

Create Container

docker run --name pi-hole \ -v /share/Files/Containers/pi-hole-data/dnsmasq.d:/etc/dnsmasq.d:rw \ -v /share/Files/Containers/pi-hole-data:/etc/pihole:rw \ -p 53:53/tcp -p 53:53/udp -p 80:80 \ -P --net docker-static-bridge -h pi-hole \ -e IMAGE=alpine \ --ip=192.168.0.3 \ -e ServerIP=192.168.0.3 \ -e TZ=Australia/Melbourne -d -t -i \ -e IPv6=False \ --restart=always \ --entrypoint "/init" \ diginc/pi-hole:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment