Install Portainer offline for Galaxy Kylin v10-arm version

Portainer is a visual graphical management tool for container images. Portainer can be used to easily build, manage and maintain Docker environments. And it's completely free, container-based installation, convenient and efficient deployment.

Table of contents

1. Install the portainer image package

 2. Run portainer

 3. Visit portainer

4. Configure multiple nodes

4.1 Edit docker.service

 4.2 Restart the docker service

 4.3 Configure remote docker


1. Install the portainer image package

The newer version of portainer is portainer/portainer-ce. The previous version is portainer/portainer. There are still some differences between the old and new versions. The old version also has application templates when offline. The new version has no built-in application templates when offline. It is not very convenient, but I still installed a newer version of portainer.

#现在联网的机子上拉取镜像包
docker pull portainer/portainer-ce:linux-arm64-2.11.1-alpine

#离线加载镜像包,在镜像包所在的文件夹目录下执行
docker load < portainer/portainer-ce:linux-arm64-2.11.1-alpine

 2. Run portainer

docker run -d --name portainerUI -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce

Among them, --name can be changed, -p is used for port mapping, the previous 9000 can be adjusted to your own port, and it is also the prot that you access later using ip+port, the latter 9000 is the portainer port that cannot be modified, -v is the mount operation, and the final image name can omit the version number, or can include the version number.

 3. Visit portainer

To access portainer via ip:port, first create a password for the default user admin, enter and confirm the password and access successfully.

4. Configure multiple nodes

4.1 Edit docker.service

vim /usr/lib/systemd/system/docker.service

#找到 ExecStart字段修改如下


ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock

 4.2 Restart the docker service

systemctl daemon-reload
systemctl restart docker

 4.3 Configure remote docker

Perform the Add environment operation on the left side of Environmentmets, select docker for the environment type, name it yourself, and fill in the environment URL according to the prompts:

 Finally, after setting up the cluster nodes, you can see the following display on the home page, that is, the configuration is complete.

Guess you like

Origin blog.csdn.net/q_hsolucky/article/details/125743609