Install the Rancher Docker container management platform in linux

Source: Internet
Author: User
Tags curl docker run

Rancher Labs currently has two products.

Rancher Docker container management platform
RancherOS is a Linux release suitable for running Docker, similar to CoreOS
Rancher Docker container management platform

If the native Docker is a container, Rancher can be used as a container ship, platform-based control, and sailing with applications.

Rancher hosts docker


Docker environment installation

The following describes how to install Rancher in CentOS 7.

Official Docker installation method

Curl-sSL https://get.docker.com/| sh
Use DaoCloud to accelerate Docker installation in domestic environments

Curl-sSL https://get.daocloud.io/docker | sh
Curl-sSL https://get.daocloud.io/daotools/set_mirror.sh | sh-s http: // your daocloudID. m. daocloud. io # set domestic Image Download acceleration
Systemctl start docker. service # CentOS7 start docker
Systemctl enable docker. service # start docker automatically when CentOS7 is started
Docker version # view the docker version
Docker info # View docker information
Sudo service docker status # View docker status

Install the Rancher Management Server administrator

Docker run-d -- restart = always-p 8080: 8080 rancher/server

Install Rancher Agent on the controlled terminal

Master IP: 8080 http: // 192.168.33.11: 8080/> Add Host

Copy the content in step 5 to the controlled machine for installation.

Sudo docker run-e CATTLE_HOST_LABELS = 'Center = localdev & host = Dev'-d -- privileged-v/var/run/docker. sock:/var/run/docker. sock-v/var/lib/rancher:/var/lib/rancher/agent: v1.0.2 http: // 192.168.33.11: 8080/v1/scripts/31B86F01A71423902C9F: 1474722000000: Random

Description

After "Rancher Agent controlled terminal" is installed, you can manage and deploy docker on the "Rancher Management Server Management Terminal".

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.