Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.8 KB

File metadata and controls

67 lines (48 loc) · 1.8 KB
title Portainer
description A guide to installing Portainer on Ubuntu Server LTS
published true
date 2025-06-08 18:39:26 UTC
tags
editor markdown
dateCreated 2024-02-23 13:41:40 UTC

What is Portainer?

Portainer is a popular Docker UI that helps you visualize your containers, images, volumes and networks. Portainer helps you take control of the Docker resources on your machine, avoiding lengthy terminal commands.

Installation

{.tabset}

TrueNAS

  1. Change Portainer Data Storage to Host Path
  2. Change the Port to 9443 since that is the default for Portainer and is referenced in all their documentation.

Docker

Note that Docker has to be installed before you can follow these steps! {.is-warning}

Docker Run

Run all of these commands in sequence:

docker volume create portainer_data
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

Docker Compose

services:
  portainer:
    image: portainer/portainer-ce:latest
    container_name: portainer
    restart: unless-stopped
    ports:
      - 8000:8000
      - 9443:9443
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /mnt/tank/configs/portainer:/data

Login

  1. Portainer is now running on port 9443, behind https. To login, enter https://{serverIP}:9443 in the address bar, then create your user and password. 

  2. After logging in, click the box for Get Started

  3. To deploy Docker Compose files, go to Stacks > + Add Stack and copy & paste the compose.yaml there.

Video