Created
October 18, 2021 16:01
-
-
Save noam1023/290b6664dc9de02f78810bbbc07093b2 to your computer and use it in GitHub Desktop.
install Pihole in Docker in Raspbian Buster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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