In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to manage docker through UI. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Install portainer
Just as we run the application through a container, just run a container, which is very simple:
$docker run-d-p 9000Glo 9000-v / var/run/docker.sock:/var/run/docker.sock portainer/portainer
Then access the protainer site through port 9000 in the browser!
Configure administrator information
When you access portainer for the first time, you need to set the administrator's account information. We name the administrator account admin and set the password:
Select objects managed by portainer
For simplicity, let's configure portainer to manage the local docker, select "Local" in the following figure and click the "connect" button:
Understand the main functions of portainer
After simple installation and configuration, we enter the dashboard interface of portainer:
The interface design of Portainer is very simple, and the main menu is almost an one-to-one correspondence of the main functions of docker. Next, we will create a container through the App Templates menu and introduce some of the functions commonly used in portainer through this container.
Select the App Templates menu on the left, and then select create an application that runs in the nginx container:
In the configuration interface of container properties, specify the name of the container as webdemo, and then set port 80 of the host to be mapped to port 80 of the container in the advanced options:
Then click the "Deploy the container" button to start creating the container. After the container is created, it will be displayed in the Containers interface:
In this management interface, we can select one or more containers for operation, such as start, stop, kill, restart, pause, resume, and remove, and of course, you can add new containers through the "Add container" button. Next, click the container name "webdemo" in the red box to enter the container details interface:
This interface shows the details of a single container and the actions that can be performed on that container. At the top is the operation for the container, followed by the state of the container, followed by "Access control", "Create image", "Container details", "Volumes" and "Connected networks". For ease of display, the author folds all the following categories.
In the container status area, you need to pay attention to the Status, Logs, Console and Inspect in the red box, which we usually care about. Click on them below to view the corresponding views.
The Container statistics view displays the resource information occupied by the container in real time. It is important to note that the relevant data is not persisted, and the content displayed is always the data after opening this view:
The container log view displays the log output in the container:
Through the console view, we can execute commands in the container:
The Inspect view shows us the details of the container:
Manage manually created containers
Portainer does not only manage containers created by itself. Containers that we create through the command line are also discovered and managed by portainer. For example, we create a container named mycon on the console of the host:
$docker run-rm-id-name mycon ubuntu
Then refresh it in the container list interface of portainer:
The mycon container already appears in the container list.
Other operations
Container images, network, and data volumes can be managed through the Images, Networks, and Volumes items in the menu:
The above is the editor for you to share how to manage docker through UI, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.