Cloud Native 6 min read

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.

Selected Java Interview Questions
Selected Java Interview Questions
Selected Java Interview Questions
Portainer Introduction and Usage Guide for Docker Management

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 portainer

The first listed image docker.io/portainer/portainer is typically used:

# Pull the image
docker pull docker.io/portainer/portainer

Running 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/portainer

After 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/portainer

Log 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

DockerDevOpsSwarmContainer ManagementDocker SwarmPortainer
Selected Java Interview Questions
Written by

Selected Java Interview Questions

A professional Java tech channel sharing common knowledge to help developers fill gaps. Follow us!

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.