FL1GHT5 Lab • Linux & Servers

How to Use Portainer to Manage Docker Containers

Who This Is For

Beginner. Best after you've already deployed at least one stack via Compose.

Think of it like a car's dashboard instead of popping the hood every time you want to know what's going on. The engine (Docker) works the same either way, the dashboard just gives you dials and switches instead of squinting at the wiring directly.

What You'll Build

A Portainer dashboard managing at least two Docker Compose stacks, without losing the underlying command-line fundamentals.

Prerequisites

Deploy Portainer

$docker volume create portainer_data
$docker run -d -p 9443:9443 --name portainer --restart=always \
$ -v /var/run/docker.sock:/var/run/docker.sock \
$ -v portainer_data:/data portainer/portainer-ce:latest

Secure the First Admin Account

On first login, set a strong administrator password immediately, this account has full control over every container on the host.

Interface Tour

Deploy a Stack from Compose

Stacks → Add stack → paste your compose.yaml content (or point at a Git repo) → Deploy.

Recreate and Clean Up Safely

Recreating a container from the UI is equivalent to docker compose up -d --force-recreate, safe as long as the underlying volumes are untouched. Removing unused images/volumes is safe; removing a volume attached to a running app is not.

Security & Backup Notes

Troubleshooting

Lab Finish Line

A Portainer dashboard managing at least two Docker Compose stacks.

What to Build Next

Planning a business implementation?

Explore our infrastructure and systems services.

View services