Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and deploy RancherOS

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Xiaobian to share with you how to install and deploy RancherOS, I believe most people still do not know how to, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!

Rancher OS is the smallest and easiest way to run Docker at production scale. Everything in RancherOS is managed as Docker containers. These include udev and rsyslog. RancherOS includes only the minimum software needed to run Docker, so the binary download package for RancherOS is only about 20MB. Everything can be pulled dynamically through Docker.

The original goal of RancherOS was to build a minimal Linux distribution that could run Docker containers perfectly. RancherOS initially wanted to be able to run Docker directly on Linux Kernel, distributing all user-space Linux services as Docker containers. With this, Rancher OS does not need to use a separate package distribution mechanism.

Docker daemons in RancherOS run as PID 1, the first process launched by the kernel. We call this Docker instance "System Docker" as a response to initializing system services such as udev, DHCP and workbench. In other Linux distributions, System Docker acts as an initialization system, similar to sysvinit or systemd. System Docker manages all system services as Docker containers.

System Docker creates a special system service container called User Docker. User Docker runs a standalone Docker daemon.

Environmental configuration:

Win7+VirtualBox-5.1.30 for creating 2 virtual machines (Ubuntu, RancherOS)

Ubuntu16.04 1 192.168.3.220 Create secret key, remote ssh operation RancherOS

RancherOS 1 192.168.3.224 installed on virtual machine hard disk

Main process:

1. On an Ubuntu machine, use ssh-keygen to generate key pairs;

2. Edit the cloud-config.yml configuration file and put in the ssh public key and IP address information;

3. Use scp command on RancherOS host to copy Ubuntu configuration file to machine;

4. Execute sudo ros install command, specify configuration file and disk, install RancherOS system to hard disk;

5. Restart the RancherOS host and log in to RancherOS using the private key ssh on the ubuntu machine for management;

6. Try to view the available versions of the system, switch Docker versions, set up image accelerators, run containers and other basic operations;

Operational Figures:

01-On an Ubuntu machine, use ssh-keygen to generate a key pair, enter three times, use the default filename, and the password for the key is null.jpg

02-File name, location and contents of generated public and private keys.jpg

03-Edit the cloud-config.yml configuration file, set the network-related information of the RancherOS host to be installed, copy and paste the public key content.jpg

04-Create a virtual machine and set the drive to rancheros.iso file.jpg

05-Configure the virtual machine, start RancherOS, and use the default startup item.jpg

06-Use CD Boot to enter the system.jpg

07-When DHCP is configured internally, eth0 of RancherOS automatically acquires the IP address.jpg

08-On the RancherOS host, use the scp command to copy the cloud-config.yml file from the remote Ubuntu host to the RancherOS machine.jpg

09-Use fdisk -l to view the name and size of the local disk.jpg

10-Install the RancherOS system to your local hard drive using the ros install command.jpg

11-Local Hard Disk Installation Procedure for RancherOS.jpg

12-Local Hard Disk Installation Process for RancherOS 2.jpg

13-Remove the RancherOS virtual machine drive to boot the system from the hard drive.JPG

14-Restart the VM, boot the RancherOS system from the hard disk, IP address is already IP.jpg in the configuration file

15-On an Ubuntu machine, log in remotely to the RancherOS machine using the private key file ssh.jpg

16-It is now possible to remotely operate on the RancherOS host. OK。. jpg

17-Do something else-View ros version-Available version-Docker version-Available docker engine version.jpg

18-View current Docker version-currently docker-17.03.2.jpg

19-Switch to Docker 1.12.6, check Docker version again It's version 1.12.6.jpg

20-Configure Mirror Accelerator-Test download speed-around 10MB per second.jpg

21-docker info info-Version 1.12.6.jpg

22-Switch Docker version again.jpg

23-View docker info for docker 17.03.2 after switching.jpg

01-On an Ubuntu machine, use ssh-keygen to generate a key pair, enter three times, use the default filename, and the password for the key is null.jpg

02-File name, location and contents of generated public and private keys.jpg

03-Edit the cloud-config.yml configuration file, set the network related information of the RancherOS host to be installed, copy and paste the public key content.jpg

04-Create a virtual machine and set the drive to rancheros.iso file.jpg

05-Configure the virtual machine, start RancherOS, and use the default startup item.jpg

06-Use CD Boot to enter the system.jpg

07-When DHCP is configured internally, eth0 of RancherOS automatically acquires the IP address.jpg

08-On the RancherOS host, use the scp command to copy the cloud-config.yml file from the remote Ubuntu host to the RancherOS machine.jpg

09-Use fdisk -l to view the name and size of the local disk.jpg

10-Install the RancherOS system to your local hard drive using the ros install command.jpg

11-Local Hard Disk Installation Procedure for RancherOS.jpg

12-Local Hard Disk Installation Process for RancherOS 2.jpg

13-Remove the RancherOS virtual machine drive to boot the system from the hard drive.JPG

14-Restart the VM, boot the RancherOS system from the hard disk, IP address is already IP.jpg in the configuration file

15-On an Ubuntu machine, log in remotely to the RancherOS machine using the private key file ssh.jpg

16-It is now possible to remotely operate on the RancherOS host. OK。. jpg

17-Do something else-View ros version-Available version-Docker version-Available docker engine version.jpg

18-View current Docker version-currently docker-17.03.2.jpg

19-Switch to Docker 1.12.6, check Docker version again It's version 1.12.6.jpg

20-Configure Mirror Accelerator-Test download speed-around 10MB per second.jpg

21-docker info info-Version 1.12.6.jpg

22-Switch Docker version again.jpg

23-View docker info for docker 17.03.2 after switching.jpg

That's all for "How to Install and Deploy RancherOS", thanks for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report