Wednesday, December 25, 2024
HomeDevOpsHow To Manage Multi-Node Deployments with Rancher and Docker

How To Manage Multi-Node Deployments with Rancher and Docker

Rancher is an open source project that provides a complete platform for operating Docker in production. It provides infrastructure services such as multi-host networking, global and local load balancing, and volume snapshots. It integrates native Docker management capabilities such as Docker Machine and Docker Swarm. It offers a rich user experience that enables devops admins to operate Docker in production at large scale.

If Docker is the raw material for building the house, Rancher is a set of management tools that are needed to build a house.

Let’s see how to install and what are prerequisites to install rancher.

Requirement:

If your computer satisfies above requirements, run below command,

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

You can catch the latest version of Rancher server after executing the instruction, then wait for it to start Hello (initial startup takes about 3 to 5 minutes, ranging wait and want to learn to run the state can use the docker logs command to view).

Once launched successfully, then open your browser and open rancher webUI URL http://<<You system IP/Domain Name>>:8080.

rancher default screen

The initial screen with a guide, you can take a closer look, first of all is the need to determine License this system, the following chart presents, click the ADMIN exclamation point at.

rancher access control

Rancher offers a variety of authorization management options that can be set according to usage scenarios.

Next came back to APPLICATIONS this side of the guide, to join a host (Add Host) start managing your container now!

rancher admin

There is a Rancher server console will naturally have a client, called in Rancher ” Agent” to help return and control the status of the container in the server, the next step we will want to control the machine installed Agent.

Confirm the API location, it is recommended to set a good domain binding.

rancher settings

Save And then will choose the host type of place, Rancher in this also provides a variety of VPS service support, very convenient ~

rancher add host

Regardless of not using the above options, or set up their own hosting also does not matter, selected Custom after carefully reading the instructions below, will simply enter the fourth point of the instruction is ready to complete environment Agent to establish

# docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.5 http://10.75.29.228:8099/v1/scripts/89AB94C37083057FED85:1483142400000:1qiT8fwI4NOByeva1eOiIIYGo

After wait a bit to the INFRASTRUCTURE next observed on one of your main line container Hello!

rancher hosts

After the container line to be the host APPLICATIONS in CATALOG the container to see what combination package for your appetite to see it begin to install.

rancher catelog

Above to this, has been able to complete the most basic use, the other more operations can refer to the official documents or often have the situation or technical details of the official blog .

RancherOS Introduction

This thing is also incredible , although a while ago know that another group of people come out Unikernel Systems technology is more terrible, but before the general level, RancherOS also contributed!

What is RancherOS

Docker is packaged into the operating system to container optimization-oriented development of the product.

Benefit:

  1. Fast – less common operating system resident program to Docker as the main axis in the implementation
  2. Stable – specially built for Docker, optimized for Docker design
  3. More – around this complete Docker environment, compared to the general system resources to be saved, naturally able to handle the number of containers
RELATED ARTICLES
- Advertisment -

Most Popular

Recent Comments