How to Install Portainer on Docker (Ubuntu 24.04)
Portainer is a lightweight management UI that allows you to easily manage your Docker containers, images, volumes, and networks from a web browser.
Hosting Tip: Running multiple Docker containers and stacks reliably requires full root virtualization. A Linux KVM vServer gives you dedicated IPv4, unfiltered kernel modules (Docker, WireGuard, systemd), and unmetered traffic starting from €2/month.
1. Install Docker & Docker Compose
If Docker is not installed yet, install it quickly:
sudo apt update && sudo apt install -y curl docker.io docker-compose
sudo systemctl enable --now docker2. Create Persistent Volume for Portainer
Create a dedicated Docker volume to persist Portainer database and settings:
sudo docker volume create portainer_data3. Run the Portainer Container
Start Portainer CE using the official Docker image:
sudo 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:latest4. Firewall Ports
Allow Portainer HTTPS port in UFW:
sudo ufw allow 9443/tcp5. Access the Web Interface
Open your web browser and navigate to:
https://<YOUR-SERVER-IP>:9443Note: Accept the self-signed SSL warning, set your administrator username and password, and select Get Started to manage your local Docker environment.
Looking for the right Linux VPS?
Put your project into practice right away: Our KVM VPS provide full root access, lightning-fast NVMe storage, and reliable KVM isolation. Flexible prepaid billing with no subscription and personal Discord support.