Detailed graphic and text explanation of docker building portainer environment Chinese version

藏色散人
Release: 2023-03-20 16:22:13
forward
7627 people have browsed it

This article brings you relevant knowledge about Docker. It mainly introduces how docker builds the Chinese version of the portainer environment step by step. Friends who are interested should take a look at it. I hope it will be helpful to everyone.

Installation reference address: https://hub.docker.com/r/6053537/portainer-ce

1. Pull the image and start the container

```bash
docker pull 6053537/portainer-ce    #拉取镜像
docker run -d --restart=always --name="portainer" -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock 6053537/portainer-ce
Copy after login

2. Visit the portainer backend address and create an administrator

16.124.12.56:9000
ip地址+9000端口
Copy after login

Detailed graphic and text explanation of docker building portainer environment Chinese version

Detailed graphic and text explanation of docker building portainer environment Chinese version

Add multiple server docker management

默认是只能查看本机的docker机器,但是可以通过其他方式实现多个docker服务器管理,首先需要远程服务器配置文件
Copy after login

Configure server docker file

vi /usr/lib/systemd/system/docker.service
Copy after login
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
Copy after login
文件替换为如下(端口可自定义,记得linux开放响应端口。这样相当于对外暴露端口,如果服务器的端口允许外网访问,会出现安全问题。生产环境中最好不要这么做,或者配置只对部分IP开放。):
Copy after login
ExecStart=/usr/bin/dockerd  -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock -H fd:// --containerd=/run/containerd/containerd.sock
Copy after login

Detailed graphic and text explanation of docker building portainer environment Chinese version

Finally restart docker

systemctl daemon-reload // 1,加载docker守护线程
systemctl restart docker // 2,重启docker
Copy after login

Add remote server docker node

1. Add environment

Detailed graphic and text explanation of docker building portainer environment Chinese version

2. Environment Wizard

Detailed graphic and text explanation of docker building portainer environment Chinese version

Detailed graphic and text explanation of docker building portainer environment Chinese version

##3. Done

Detailed graphic and text explanation of docker building portainer environment Chinese version

Recommended learning:

docker video tutorial, docker usage tutorial

The above is the detailed content of Detailed graphic and text explanation of docker building portainer environment Chinese version. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
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
Popular Tutorials
More>
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!