Docker cluster (i)--Simple application Portainer

Source: Internet
Author: User
Tags docker run

This article describes the Docker simple build cluster, using only the Portainer tool. There are two main points, one point is to open the 2375 port on the Docker host, the point is to add the host on the Portainer.

Steps:

    • Premise (System is CENTOS7)
      Install Docker on node and master, respectively. Also, multiple node and so on.
    • Open port 2375 on node with the following command:
      echo "OPTIONS=‘-Htcp://0.0.0.0:2375 -H unix:///var/run/docker.sock‘" >> /etc/sysconfig/docker
    • Restarting the Docker service
      systemctl restart docker
    • Release 2375 on the firewall
      firewall-cmd --zone=public --add-port=2375/tcp --permanetfirewall-cmd --reload
    • Switch to master node, install Portainer
      docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock --restart=always --name portainer portainer/portainer
      -Add node nodes on Portainer
      First login Portainer, set the admin password, add endpoints,

      -Switch to the Portainer home page to see if the add is successful,

      - Summary
      This method is only used for testing experiments, the production environment, there is a great security risk!! Therefore, it will be supplemented in subsequent chapters. Cond...

Docker cluster (i)--Simple application Portainer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.