Skip to content
Home » docker

docker

UPGRADE PORTAINER COMMUNITY EDITION ON DOCKER / / RASPBERRY PI

Here is a quick how-to for the way I updated my portainer to the latest

SSH to the Raspberry Pi 5

login

sudo su –
docker stop portainer
docker rm portainer
docker pull portainer/portainer-ce:latest
docker run -d -p 8000:8000 -p 9443:9443 –name=portainer –restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:lates
t

Open a browser, navigate to your Raspberry Pi 5:9443 and then login

Success!

INSTALLING PIHOLE ON RASPBERRY PI 5 WITH DOCKER

Assuming you already have a Raspberry Pi 5 setup with Debian, and also assuming you have Docker installed, here is how you setup Pi-Hole

Open a terminal

sudo su –
cd /home/yourusername

rm pihole.sh (if it exists)
nano pihole.sh
Copy this new docker script
https://github.com/pi-hole/docker-pi-hole/blob/master/examples/docker_run.sh
Change America/Chicago to America/New York
Save and Exit
sudo chmod u+x pihole.sh
./pihole.sh
Pihole now installs

Open a web browser and navigate to the IP/admin for example (not https)

Login… or if you did not get your password during the setup (happens sometimes)
From the terminal
docker exec -it pihole bash
sudo pihole -a -p
Create a new password

Back to your browser, and login.

Success