Cloud Native 3 min read

How to Install and Use Portainer for Docker on CentOS 7

This guide walks through installing Docker on CentOS 7, launching Portainer with a single Docker command, accessing its web UI on port 9000, setting an admin password, and using the interface to view and manage images and containers.

The Dominant Programmer
The Dominant Programmer
The Dominant Programmer
How to Install and Use Portainer for Docker on CentOS 7

Prerequisite

Docker must be installed and configured on a CentOS 7 server. Installation steps are documented at

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/119028701

.

Start Portainer

Run the following Docker command to launch Portainer as a detached container, map host port 9000 to container port 9000, mount the Docker socket for API access, enable automatic restart, and grant privileged mode:

docker run -d -p 9000:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --privileged=true portainer/portainer

Access the Web UI

Portainer’s UI listens on port 9000. Open http://<em>your-server-ip</em>:9000 in a browser. The first screen prompts for an admin password; after setting it, click “Connect” to attach to the local Docker engine.

UI navigation

The dashboard shows two main sections:

Images – lists all Docker images present on the host.

Containers – lists running and stopped containers.

From these tabs you can inspect, start, stop, and remove images or containers directly.

After setting the password, the UI prompts to connect to the local Docker daemon; clicking “Connect” establishes the link and displays the management console.

Within the console, the Images tab shows all images and the Containers tab shows all containers, as illustrated in the following screenshots.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Dockercontainervisualizationportainercentos7
The Dominant Programmer
Written by

The Dominant Programmer

Resources and tutorials for programmers' advanced learning journey. Advanced tracks in Java, Python, and C#. Blog: https://blog.csdn.net/badao_liumang_qizhi

0 followers
Reader feedback

How this landed with the community

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.