Management
How to install Portainer on your home server
Portainer is a web page to manage your Docker containers without typing commands. The web page is on port 9443. It has steps for Debian, TrueNAS and Proxmox.
What the steps install, and how it connects
Connects to it
- Browser9443/tcp
Your server, in Docker
container portainer
image portainer/
- 8000/tcp
- 9443/tcpweb page
Its data on the server
/the Docker socketvar/ run/ docker.sock - portainer_datato /
data its data
On TrueNAS the app’s web page is on 31015/tcp. Drawn from step 8 of the Debian + Docker steps. Ports are the ones in those steps and in the table below.
The diagram in words
The Debian + Docker steps install the container portainer, with ports 8000/tcp and 9443/tcp. Connects to it: Browser on 9443/tcp. Its data: /var/run/docker.sock (the Docker socket); portainer_data (its data).
What it needs
| Ports | 9443/tcp (web page), 8000/tcpTrueNAS app web page: 31015/tcp |
|---|---|
| Memory | Not stated by the project (read 2 Dec 2026) |
| CPU | Not stated by the project (read 2 Dec 2026) |
| Disk | Not stated by the project (read 2 Dec 2026) |
| Licence | Zlib |
| TrueNAS | Community app on TrueNAS |
| Project page | portainer/portainer |
Ports are the project's defaults. Memory and disk figures are the project's own, with the page and the date read. Estimates only.
The one thing to know before you start
Portainer gets the Docker socket, which is root-level access to the host. Add the --privileged flag only if SELinux is on, as the project says. On TrueNAS it is a community-train app, which TrueNAS hides by default, and it needs TrueNAS 24.10.2.2 or newer. On Proxmox, use a virtual machine, not an LXC container.
Install steps
These steps follow the project's own pages and have not been tried on real hardware yet.
They start from a server that runs Docker: set up an old laptop or PC first. Docker or bare metal for Portainer: what each method needs.
- WARNINGDo not run these steps on a server with a public IP address. Anyone on the internet could then reach the apps.
- WARNINGDo not forward these ports on your router, unless a step tells you to. The ports would then be open to the internet.
- WARNINGDo not trust ufw to close a port that Docker opens. Docker bypasses the ufw rules. Read the Docker page on firewalls.
Debian + Docker
checking Some details are still being checked.
- WARNINGKnow that Portainer gets the Docker socket. This is root-level access to the host.
- WARNINGKnow that --privileged gives the container wide access to the host. Portainer says: "If you require SELinux, you will need to pass the --privileged flag to Docker when deploying Portainer."
Install Docker Engine with the Compose plugin. Use the Docker page for Debian.
Type this command to create the docker group. If the group exists, go to the next step.
sudo groupadd dockerType this command to add your user to the docker group.
sudo usermod -aG docker $USERLog out and log in again so that the group change takes effect.
Type this command to test Docker.
docker run hello-worldIf SELinux is on, add the --privileged flag to the docker run command in the step that starts Portainer.
Type this command to make the data volume.
docker volume create portainer_dataType this command to start Portainer.
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:ltsOpen https://<server address>:9443 in a browser.
Complete first-time setup with the setup token.
TrueNAS app
checking Some details are still being checked.
- WARNINGThis app is in the community train. The community supports it, and TrueNAS hides it by default.
- WARNINGUpdate TrueNAS to version 24.10.2.2 or newer before you start.
Open Apps > Configuration > Settings. Select the community checkbox. Click Save.
Open Apps > Discover Apps.
Apps > Discover Apps > search 'portainer' > Install (train: community)Search for 'portainer'.
Click Install.
Open http://<server address>:31015 in a browser.
Proxmox VE (VM + Docker)
checking Some details are still being checked.
- WARNINGUse a VM, not an LXC container. Proxmox says: "nesting containers inside a Proxmox QEMU VM remains a recommended practice".
- WARNINGKnow that Portainer gets the Docker socket. This is root-level access to the host.
- WARNINGKnow that --privileged gives the container wide access to the host. Portainer says: "If you require SELinux, you will need to pass the --privileged flag to Docker when deploying Portainer."
Create a Debian VM in Proxmox VE.
Sign in to the VM.
Install Docker Engine with the Compose plugin. Use the Docker page for Debian.
Type this command to create the docker group. If the group exists, go to the next step.
sudo groupadd dockerType this command to add your user to the docker group.
sudo usermod -aG docker $USERLog out and log in again so that the group change takes effect.
Type this command to test Docker.
docker run hello-worldIf SELinux is on, add the --privileged flag to the docker run command in the step that starts Portainer.
Type this command to make the data volume.
docker volume create portainer_dataType this command to start Portainer.
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:ltsOpen https://<server address>:9443 in a browser.
Complete first-time setup with the setup token.
Licences and credits: Sources and licences.
What will it cost to run?
This page gives no power figure for Portainer. The planner adds up the box it runs on, where the power goes splits that figure part by part, and the guide gives idle watts and a yearly cost at your own price.
Plan a home server in the planner, or read the home server hardware guide.
Related apps
- Nginx Proxy Manager: puts a name in front of it
- Jellyfin: a container you can manage from it