Portainer for Mere Mortals
A container engine is driven by typed commands: long ones, with flags, against names that are half hash. Portainer puts a web console in front of the engine instead: pages for containers, stacks, images, volumes and networks, buttons for start and stop, logs in the browser, and a login system so more than one person can use it without sharing one shell account. It is not an engine. The engine still does every bit of the work; Portainer asks it, politely and visibly, through the same API the command line uses.
This guide explains what the console can and cannot do, how to install it as a container with its memory in a volume of its own, why its first login is guarded by a token printed in its logs, and how to run a small two-service stack from a Compose file, look after containers day to day, share access with a second person without handing them everything, and back the whole console up into one encrypted file. The security fact is stated plainly, early, because everything else hangs off it:
An administrator of Portainer can do anything the engine can do — and the engine can do anything the machine can do. The console is a privileged door. Guard it like one.
The lab behind this guide ran the real thing: Portainer CE 2.45.3, as a container, managing the Podman engine through its Docker-compatible socket (Podman speaks the same API, and Portainer cannot tell the difference — a fact chapter 5 makes use of). Against it the lab passed the setup-token door, created the first administrator, registered the engine as an environment, deployed an invented two-service stack from a Compose file read over the API, watched its web page answer, read its logs, stopped and started its cache, made a team and a non-administrator account — and proved that account could see nothing until access was granted. Then the lab backed the console up, wiped it, restored the backup into a fresh Portainer, and signed in with the accounts it carried.
What the lab could not do, it did not
fake. Its sandbox forbids the network
namespaces ordinary containers live
in, so the lab's stack shares the host
network where a normal stack would get
its own, and one engine call (a
container's process list) was refused
by the sandbox's kernel and is kept,
verbatim, in the transcript. The
browser pages themselves are described
rather than screenshotted: the lab
drove the same API the pages call, and
says so wherever it matters. The app
template catalogue would not load over
the sandbox's network path; chapter 10
teaches templates from the
documentation and shows the refusal.
criteria.md keeps the full ledger of
what was run and what was only read.
What this guide covers
- What Portainer is — a console, not an engine: what it adds (pages, logins, one view of many engines) and the privileged-door rule
- The moving parts — the server, its data volume where its whole memory lives, environments, and the API it both offers and uses
- Installing Portainer — one container, one volume, two ports, and how to know the install worked
- The first login — the setup token in the server log, the first administrator, and why the door closes behind them
- Environments and endpoints — telling Portainer about an engine: the local socket, remote engines, agents, and what "up" means
- Stacks — a Compose file becomes a running set of services: the web editor, the file, the API, and removing a stack cleanly
- Containers day to day — lists, logs, stop and start, the console and the process table, and the honest edges of each
- Images and registries — what is on the engine, pulling more, and giving Portainer the keys to a private registry
- Volumes and networks — the data that outlives containers, why a stack leaves its volume behind, and the networks stacks build
- App templates — one-click starting points, where the catalogue comes from, and reading a template before you trust it
- Users, teams and access — administrators and standard users, teams, and access granted environment by environment — proven with a login that could see nothing
- Keeping Portainer — updating the console itself, and the encrypted backup that carries its whole memory to a fresh install
- The neighbours — Dockge, lazydocker, the plain command line, and the Kubernetes dashboards: what each does that Portainer doesn't
- Limits — one login holding every engine, the socket as a root key, what the free edition leaves out, and what a console is not for
- Troubleshooting — the lost setup token, the claimed first login, the environment that shows down, and the empty template catalogue this guide's lab met
- Glossary — the terms, collected in one place
What it doesn't cover
Running somebody else's containers on somebody else's machines: this guide is about consoles you own, on engines you own. Kubernetes gets one honest section in chapter 5 and a pointer in chapter 13; a Kubernetes cluster deserves its own guide, and this is not it. Swarm mode is described, not run — the lab had one engine. The paid Business Edition's extra machinery (single sign-on, audit trails, policy) is named where it differs and not taught; everything here is the free Community Edition, run for real.
How to use this guide
Read chapter 1 for the model and the
rule, and chapter 2 before installing
anything — knowing that the data volume
is Portainer's whole memory turns later
surprises (updates, backups, a lost
console) into named, solvable problems.
Do chapter 4 in the same sitting as the
install: the first login is the one
moment this tool cannot be casual
about. Deploy the practice stack in
chapter 6 before pointing the console
at anything you care about, and make
the second, powerless account in
chapter 11 even if you never share the
console — logging in as the powerless
account is the fastest security audit
this tool offers. The lab's files are
in portainer-lab/; its transcripts in
portainer-lab/transcripts/; its notes
are examples/lab-notes.txt.
Part of the series
This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.
Related guides:
License
The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.