How to Install Portainer on Ubuntu 26.10

Portainer is a lightweight, open-source management tool for Docker that simplifies container, image, and volume management through an easy-to-use graphical user interface (GUI). It provides a centralized platform to manage Docker environments and is ideal for both small setups and large-scale Docker deployments.

Prerequisites

Before installing Portainer, ensure the following:

  • Ubuntu 26.10 server is running.
  • A user account with sudo privileges.
  • Access to the internet to download Docker and Portainer.

Step-by-Step Installation Guide

Step 1: Update the System

It's important to ensure your system is up-to-date. Run the following command to update and upgrade your packages:

apt update && apt upgrade -y

Install Docker

Portainer requires Docker to be installed. If you don't have Docker installed, follow these steps:

apt install apt-transport-https ca-certificates curl gnupg -y

Add Docker's GPG key:

install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc

Add the Docker repository:

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker:

apt update
apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y

Start and enable Docker:

systemctl enable --now docker

Check Docker status:

systemctl status docker

Install Portainer

Once Docker is installed and running, you can install Portainer to manage your Docker containers.

Create a Docker volume for Portainer:

docker volume create portainer_data

Download and run the Portainer container:

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

Output:

root@server:~# 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
Unable to find image 'portainer/portainer-ce:latest' locally
latest: Pulling from portainer/portainer-ce
4f4fb700ef54: Pull complete
c7e34731674e: Pull complete
9ab41045230a: Pull complete
2ff62971c2fb: Pull complete
d1e89ff9b379: Pull complete
70636407b8c2: Pull complete
224552a17e45: Pull complete
1c4fea3af7a0: Pull complete
02a2cded7f75: Download complete
662b373d6a7d: Download complete
Digest: sha256:1ae8e65d50ca5498cb2c33e617495a1e3ef245b0d2392b4a44c70ae09b822891
Status: Downloaded newer image for portainer/portainer-ce:latest
5d6310bf46ae5047ba171b07f71578e2a5ed3344406e9219ab66ea82e4811a6b

Restart Portainer:

docker restart portainer

Access Portainer Web UI

Open a web browser and navigate to:

https://YOUR-SERVER-IP:9443

Note: Replace YOUR-SERVER-IP with the actual IP address of your server.

image

Once loaded, set up the admin account by following the on-screen prompts. On new Portainer installations, a setup token may be required to create the administrator account. Retrieve the token from the Portainer container logs using the following command:

docker logs portainer 2>&1 | grep 'setup_token='

Output:

root@server:~# docker logs portainer 2>&1 | grep 'setup_token='
setup_token=2a66054fc1857d91bcda9135893be716a180839e4965027d164b6539b44e3d2b
setup_token=6c25733a3f8b19a02255a11c0fd33d6d973a5db2285be46b90c99a8ad0ce6139
setup_token=c118f911ea011fbc2c1d2de7bcc5fd5ca40908492b954ff2b159a3683eee4364
setup_token=e46d22b058dff652c84824138b0a327d71e7218bec638efef6a6eda670b60f63

image

image

Once logged in, you will be able to manage your Docker environment using Portainer.

This concludes the installation of Portainer on Ubuntu 26.10.


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS