Back to all guides
DevOps & Cloud

How to Install Portainer on Docker (Ubuntu 24.04)

3 read2026-08-31

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:

bash
sudo apt update && sudo apt install -y curl docker.io docker-compose
sudo systemctl enable --now docker

2. Create Persistent Volume for Portainer

Create a dedicated Docker volume to persist Portainer database and settings:

bash
sudo docker volume create portainer_data

3. Run the Portainer Container

Start Portainer CE using the official Docker image:

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

4. Firewall Ports

Allow Portainer HTTPS port in UFW:

bash
sudo ufw allow 9443/tcp

5. Access the Web Interface

Open your web browser and navigate to:

text
https://<YOUR-SERVER-IP>:9443

Note: Accept the self-signed SSL warning, set your administrator username and password, and select Get Started to manage your local Docker environment.

KVM Linux VPS

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.

Full Root Access (SSH)
Datacenter NVMe SSD
4+ Tbps DDoS Protection
100% Prepaid (No Subscription)