Skip to content

Instantly share code, notes, and snippets.

@omar-yassin
Last active February 20, 2019 17:28
Show Gist options
  • Save omar-yassin/ba13fbe46a8e437ff5f90aafc5733cbd to your computer and use it in GitHub Desktop.
Save omar-yassin/ba13fbe46a8e437ff5f90aafc5733cbd to your computer and use it in GitHub Desktop.
pi-hole
docker create \
--name pihole \
-p 53:53/tcp -p 53:53/udp -p 80:80 \
-v "/data/.docker_config/pihole/:/etc/pihole/" \
-v "/data/.docker_config/dnsmasq.d/:/etc/dnsmasq.d/" \
-e ServerIP="192.168.86.111" \
-e --cap-add=NET_ADMIN \
-e --dns=127.0.0.1 --dns=1.1.1.1 \
-e WEBPASSWORD=xxxx \
-e TZ=America/New_York \
--restart=always \
pihole/pihole:latest
# for testing
\--privileged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment