Portainer Introduction and Usage Guide for Docker Management
This article provides a comprehensive guide to Portainer, covering its features, how to download the image, run it on a single Docker host, and manage Docker Swarm clusters with detailed commands, UI walkthroughs, and configuration steps.
Portainer is a graphical management tool for Docker that offers status panels, quick deployment templates, basic operations for containers, images, networks, volumes, Swarm clusters, user management, and more, meeting the needs of small to medium‑sized environments.
Downloading the Portainer image
# Query available Portainer images
docker search portainerThe first listed image docker.io/portainer/portainer is typically used:
# Pull the image
docker pull docker.io/portainer/portainerRunning Portainer on a single Docker host
docker run -d -p 9000:9000 \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
--name portainer-test \
docker.io/portainer/portainerAfter starting, access the UI at http://IP:9000 , register the admin user, choose the local Docker endpoint, and begin managing containers, images, and volumes.
Cluster mode with Docker Swarm
Portainer also supports managing Docker Swarm clusters. After setting up a Swarm, start Portainer similarly:
docker run -d -p 9000:9000 --restart=always --name portainer-test docker.io/portainer/portainerLog in as admin, then add remote endpoints by providing a name and the Swarm node URL (e.g., 10.0.11.152:2375 ). Once added, you can view and manage nodes, containers, images, and services across the cluster.
The UI also allows image pull/push, tag management, repository configuration, and permission settings.
For detailed steps on building a Swarm cluster, refer to the linked article: http://blog.csdn.net/a632189007/article/details/78756339
Selected Java Interview Questions
A professional Java tech channel sharing common knowledge to help developers fill gaps. Follow us!
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.