"How
Cheap Dedicated Server

How to Install Portainer on Raspberry Pi 5


How to Install Portainer on Raspberry Pi 5

Portainer is a lightweight management UI that simplifies Docker container management. If you’re using a Raspberry Pi 5 and want an easy way to manage your Docker environment, installing Portainer is a great choice. This guide will walk you through the installation process step by step.

Prerequisites

Before starting, ensure you have the following:

  • A Raspberry Pi 5 with Raspberry Pi OS installed
  • Docker installed on your Raspberry Pi
  • A stable internet connection

Step 1: Install Docker (if not already installed)

Portainer requires Docker to be installed. If you haven’t installed it yet, run the following commands:
Install Docker 

sudo apt update && sudo apt upgrade -y
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker pi

After installation, reboot your Raspberry Pi:

sudo reboot

Step 2: Install Portainer

Once Docker is installed, run the following commands to install Portainer:
Install Portainer

docker volume create portainer_data
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:latest

Step 3: Access Portainer

Once the installation is complete, open a web browser and go to:
Access Portainer

https://<your-raspberry-pi-ip>:9443

The first time you access Portainer, you’ll be prompted to create an admin user. Set up your credentials, and you’re ready to start managing your Docker containers via Portainer’s web UI.

Conclusion

Portainer makes it simple to manage Docker containers on your Raspberry Pi 5. With a few commands, you can install and start using its powerful web-based interface. Now, you’re ready to streamline your container management effortlessly!

How to Install Portainer on Raspberry Pi 5
(F.A.Q)

How do I update Portainer?

To update Portainer, remove the existing container and pull the latest image:

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:latest

 

What if I can’t access the web UI?

Ensure that Portainer is running by checking:

docker ps

If it’s not running, restart it:

docker restart portainer

 

How do I uninstall Portainer?

Run the following commands to remove Portainer:

docker stop portainer
docker rm portainer
docker volume rm portainer_data

 

 

Can I use Portainer with Kubernetes on Raspberry Pi?

Yes! Portainer supports Kubernetes, but additional configurations are required to manage Kubernetes clusters.