Portainer manages multiple Docker container environments1. Environmental Preparation# aliyun 2 cores 8G 139.196.95.123 Install docker and Portainer # aliyun 1 core 2G 47.100.34.199 install docker # qingcloud 1 core 2G 139.198.167.214 Install Docker 2. Manage Docker2.1 Install and run portanerInstall portaner on aliyun 2 core 8G server # Install portainer docker pull portainer/portainer # Start portainer docker run -d -p 8080:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --name prtainer portainer/portainer systemctl daemon-reload 139.198.167.214:2375 2.2 Modify the configuration fileModify /usr/lib/systemd/system/docker.service on all three machines # Modify the configuration file vim /usr/lib/systemd/system/docker.service # Add configuration file content ExecStart= xxxx -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock xxx represents the original parameters, append -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock content # Save the startup file and restart the service systemctl daemon-reload systemctl restart docker # Check whether it is effective ss -unlpt | grep 2375 2.3 Add Node# Name docker-prod01 docker-prod02 # IP address 47.100.34.199:2375 139.198.167.214:2375 2.4 Effect diagramThe effect diagram of the added docker node is as follows. 3. Pitfall Records3.1connection refusedFailureGet http://47.100.34.199:2375/_ping: dial tcp 47.100.34.199:2375: connect: connection refused
This is the end of this article about managing multiple Docker containers with Portainer. For more information about Portainer Docker containers, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: About IE8 compatibility: Explanation of the X-UA-Compatible attribute
>>: Semanticization of HTML tags (including H5)
(P4) Web standards are composed of a series of sta...
Table of contents Skeleton screen use Vue archite...
It is very simple to build a kong cluster under t...
It is troublesome to install the db2 database dir...
1. To prohibit all IP addresses from accessing th...
nginx (engine x) is a high-performance HTTP and r...
1. Solution to the problem that the page is blank...
This article example shares the specific code of ...
The overall architecture of MySQL is divided into...
Table of contents Creating OAuth Apps Get the cod...
Preface The original project was placed on the pu...
Today we will introduce how to publish the local ...
MySQL temporary tables are very useful when we ne...
Share a Shell script under Linux to monitor the m...
Application scenario 1: Domain name-based redirec...