SelfHostCorner

perronedotdev
perronedotdev

Posted on • Originally published at perrone.dev on

Portainer on the Pi

Deploy, configure, troubleshoot and secure containers in minutes on Kubernetes, Docker, Swarm and Nomad in any cloud, data center or device.

I currently use Portainer to manage my docker containers. I used to use Yacht, which I think has a prettier interface, but doesn't work as well for me.

As always, let's make sure everything is up to date.

sudo apt update && sudo apt upgrade
Enter fullscreen mode Exit fullscreen mode

Next we are going to pull the latest container.

sudo docker pull portainer/portainer-ce:latest
Enter fullscreen mode Exit fullscreen mode

Now we need to get it running. Remember to change the port, if needed.

sudo docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
Enter fullscreen mode Exit fullscreen mode

Lastly, visit the address of the install to access the interface.

http://Pi.IP.Address:9000
Enter fullscreen mode Exit fullscreen mode

Change the port here if you changed it in the run command

You will be promoted to create an account and connect Portainer to Docker. That's it!

💡

Visit the Portainer Docker Hub for more info.

Top comments (2)

Collapse
 
alex profile image
Alex

Can you run much on a PI? I have one sitting here but never thought it was capable of running more than 1 or 2 containers at once!

Collapse
 
perronedotdev profile image
perronedotdev

I've had 10-15 containers running on it at once. I have the Pi 4 8gb. I never run anything super heavy though. The most resource intensive container I run is Jellyfin.