Skip to content

Instantly share code, notes, and snippets.

Created October 18, 2021 16:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
install Pihole in Docker in Raspbian Buster
# burn a fresh image of raspbian.
# to enable ssh access: touch /boot/ssh (or before unmounting from the host: touch /media/$USER/boot/ssh)
# ssh-copy-id pi@<the IP> pass = raspberry
# install docker:
curl -sSL | sh
# I created an image after this stage using sudo dd if=/dev/sda conv=sync,noerror bs=1M > raspbian_docker-thin-2021-10-18.img
# copy the from
# modify the SERVER_IP value to the IP of the pihole machine in the LAN.
# and chmod +x
#finally, run it
# change the /boot/cmdline.txt to something like:
console=serial0,115200 console=tty1 root=PARTUUID=d5b47c39-02 rootfstype=ext4 elevator=deadline rootwait noswap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment