Skip to content

Instantly share code, notes, and snippets.

@noam1023
Created October 18, 2021 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noam1023/290b6664dc9de02f78810bbbc07093b2 to your computer and use it in GitHub Desktop.
Save noam1023/290b6664dc9de02f78810bbbc07093b2 to your computer and use it in GitHub Desktop.
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 https://get.docker.com | 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 docker_run.sh from https://github.com/pi-hole/docker-pi-hole/blob/master/docker_run.sh
# modify the SERVER_IP value to the IP of the pihole machine in the LAN.
# and chmod +x docker_run.sh
#finally, run it
./docker_run.sh
# change the /boot/cmdline.txt to something like:
console=serial0,115200 console=tty1 root=PARTUUID=d5b47c39-02 rootfstype=ext4 elevator=deadline fsck.repair=no rootwait noswap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment