Homelab Plan

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/portainer-ce:lts

  • 8000/tcp
  • 9443/tcpweb page

Its data on the server

  • /var/run/docker.sockthe Docker socket
  • portainer_datato /dataits 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

Ports9443/tcp (web page), 8000/tcpTrueNAS app web page: 31015/tcp
MemoryNot stated by the project (read 2 Dec 2026)
CPUNot stated by the project (read 2 Dec 2026)
DiskNot stated by the project (read 2 Dec 2026)
LicenceZlib
TrueNASCommunity app on TrueNAS
Project pageportainer/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.

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."
  1. Install Docker Engine with the Compose plugin. Use the Docker page for Debian.

  2. Type this command to create the docker group. If the group exists, go to the next step.

    sudo groupadd docker
  3. Type this command to add your user to the docker group.

    sudo usermod -aG docker $USER
  4. Log out and log in again so that the group change takes effect.

  5. Type this command to test Docker.

    docker run hello-world
  6. If SELinux is on, add the --privileged flag to the docker run command in the step that starts Portainer.

  7. Type this command to make the data volume.

    docker volume create portainer_data
  8. Type 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:lts
  9. Open https://<server address>:9443 in a browser.

  10. 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.
  1. Open Apps > Configuration > Settings. Select the community checkbox. Click Save.

  2. Open Apps > Discover Apps.

    Apps > Discover Apps > search 'portainer' > Install (train: community)
  3. Search for 'portainer'.

  4. Click Install.

  5. 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."
  1. Create a Debian VM in Proxmox VE.

  2. Sign in to the VM.

  3. Install Docker Engine with the Compose plugin. Use the Docker page for Debian.

  4. Type this command to create the docker group. If the group exists, go to the next step.

    sudo groupadd docker
  5. Type this command to add your user to the docker group.

    sudo usermod -aG docker $USER
  6. Log out and log in again so that the group change takes effect.

  7. Type this command to test Docker.

    docker run hello-world
  8. If SELinux is on, add the --privileged flag to the docker run command in the step that starts Portainer.

  9. Type this command to make the data volume.

    docker volume create portainer_data
  10. Type 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:lts
  11. Open https://<server address>:9443 in a browser.

  12. 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

All 18 apps