You can't help but know about such an awesome Docker visualization tool!

藏色散人
Release: 2021-12-20 11:39:05
forward
2213 people have browsed it

docker tutorialcolumn introduces you to an awesome Docker visualization tool. I hope it will be helpful to friends who need it!

Introducing an awesome Docker visualization tool

Friends who learn back-end must learn it One of the latest technologies is Docker, which is extremely convenient for deploying projects and environments! In the past, I used docker simply and crudely, just go to the command line, whatdocker ps,docker images...

, but today I accidentally saw something , a visualization tool for Docker!

Let’s introduce today’s protagonist:Portainer

## Introduction to Portainer

Official document: https://documentation.portainer.io/

Portainer is a visual graphical management tool for container images. Portainer can be used to easily build, manage and maintain Docker environment. And it’s completely free. Based on the containerized installation method, it is very simple and convenient to install! The simple understanding is:

Docker operations that were originally based on the command line can now basically be done with just a click of the mouse on the web page!

Install Portainer

Installing Portainer requires us to open the command line terminal and your Docker has been started In this case, perform the following operations. In fact, it is the same as using Docker.

docker search Portaine
Copy after login

After that, download the first [Related recommendation:

docker video tutorial]

You cant help but know about such an awesome Docker visualization tool!
Execute the following startup command to build the container

docker run -d -p 8000:8000 -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data --restart=always portainer/portainer
Copy after login

Explain these parameters

-d # 后台运行 -p # 映射端口,这里注意需要映射两个,其中9000端口就是Web页面访问的端口 -v # 映射数据卷,这里需要映射你宿主机的docker.sock到容器内部的文件 --restart=always # 自动重启容器
Copy after login

Afterwards, Ps check whether it is started properly

You cant help but know about such an awesome Docker visualization tool!

Witness Miracle

Open the browser and enter the address: localhost:9000

The appearance of this page means that you have been deployed successfully!

You cant help but know about such an awesome Docker visualization tool!
Enter two identical passwords to register, then click

Create User

You cant help but know about such an awesome Docker visualization tool!##Remote In fact, you can connect to remote Docker. We need to manage the local Docker, so select Local here, and then click
Connect

and then the miracle will happen!

Homepage

##You can see that there is a Local Docker Start, we can click in to view the details You cant help but know about such an awesome Docker visualization tool!

The operations are clear at a glance You cant help but know about such an awesome Docker visualization tool!
You cant help but know about such an awesome Docker visualization tool!
You cant help but know about such an awesome Docker visualization tool!
You cant help but know about such an awesome Docker visualization tool!

#Advanced gameplay

You cant help but know about such an awesome Docker visualization tool!
    logs can directly view the logs inside the container, and also supports search, view by day, etc.
  • inspect is used View the details of the container, which is the same as
  • docker inspect container ID/container name
  • stats can be used to view the resource usage inside the container, including memory usage, CPU, etc.
You cant help but know about such an awesome Docker visualization tool!
There is also an

App Templateson the left menu, which can be used to quickly build container applications!

You cant help but know about such an awesome Docker visualization tool!
There are a lot of good things in it. Basically, there are commonly used ones. Click in and simply configure it to create it. I will demonstrate how to use this thing here. Read on to build a personal blog! Scroll down to find WordPress, click to enter

You cant help but know about such an awesome Docker visualization tool!
After clicking Deploy the stack, Portainer will automatically create these two containers for us.

You cant help but know about such an awesome Docker visualization tool!
#After clicking in, you can see that a WordPress container and a MySQL container have been created and started. Then the external port mapped by WordPress is

55001

You cant help but know about such an awesome Docker visualization tool!
. Then you can use the browser to access the local port!

You cant help but know about such an awesome Docker visualization tool!

Perfect, call it a day!

.markdown-body pre,.markdown-body pre>code.hljs{color:#333;background:#f8f8f8}.hljs-comment,.hljs-quote {color:#998;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#333;font-weight:700}.hljs-literal,.hljs-number, .hljs-tag .hljs-attr,.hljs-template-variable,.hljs-variable{color:teal}.hljs-doctag,.hljs-string{color:#d14}.hljs-section,.hljs-selector- id,.hljs-title{color:#900;font-weight:700}.hljs-subst{font-weight:400}.hljs-class .hljs-title,.hljs-type{color:#458;font- weight:700}.hljs-attribute,.hljs-name,.hljs-tag{color:navy;font-weight:400}.hljs-link,.hljs-regexp{color:#009926}.hljs-bullet,. hljs-symbol{color:#990073}.hljs-built_in,.hljs-builtin-name{color:#0086b3}.hljs-meta{color:#999;font-weight:700}.hljs-deletion{background:# fdd}.hljs-addition{background:#dfd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}

The above is the detailed content of You can't help but know about such an awesome Docker visualization tool!. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:juejin.im
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!