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
Next we are going to pull the latest container.
sudo docker pull portainer/portainer-ce:latest
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
Lastly, visit the address of the install to access the interface.
http://Pi.IP.Address:9000
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)
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!
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.