Rancher OS - A simplified Linux distribution built from containers, for containers

PierAlbertoPierini 302 views 15 slides Jul 31, 2017
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

Presentation made for SurreyCodeCamp to orchestrate Docker with RancherOS a simplified Linux distribution built from containers, for containers.


Slide Content

Presentation by Pier Alberto Pierini for SurreyCodeCamp

Container OS

CoreOS

RancherOS

Snappy Ubuntu Core

RedHat Project Atomic

Mesosphere DCOS

Vmware Photon

Other....

VM vs. Docker

Why use RancherOS

Security

Not to dirty your OS

Install on VM or Bare Metal

OpenSource

Only 55 MB ISO install

Web GUI

Simplify development environments

OUR INSTALLATION
Virtualbox
A lot of patience

Virtualbox VM settings
Type: Linux
Version: Linux 2.6/3.x/4.x (64-bit)
Ram: 1 Gb or more
Create a Virtual hard drive
VDI
Dynamically allocated
HDD: 8 Gb or more, depend on your need
Network: Bridge

Change password to enter on the system
with ssh
$ sudo passwd rancher
insert the new password
generate ssh passkey on your system
(use Putty in Windows)
connect with ssh on the rancheros server
ssh [email protected]

Create a cloud-config.yml on the VM with vi:
$ sudo vi cloud-config.yml
ssh_authorized_keys:
- ssh-rsa AAA...
hostname: rancheros-cd01
rancher:
network:
dns:
nameservers:
- 8.8.8.8
- 8.8.4.4
interfaces:
eth*:
dhcp: false
eth0:
address: 192.168.1.50/24
gateway: 192.168.1.1
mtu: 1500
In "AAA..." Add your public SSH key

Install RancherOS on the HDD
$ sudo ros install -c cloud-config.yml -d /dev/sda
continue: Y
reboot: N
$ sudo shutdown -h now
detach the iso file to the VM
START the VM

Finalize the rancher server installation
connect to the machine in ssh
Install the RancherOS server
$ sudo docker run -d --restart=always -p 8080:8080 rancher/server
WEB browser connect to your RancherOS server
192.168.xxx.xxx:8080
add Host
Optional: Specify the public IP that should be used for this host.
Copy and paste the script reported on the bottom of the page in your host to
register the host with Rancher
Example:
sudo 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://192.168.1.136:8080/v1/scripts/E1EF77B89C91AB141E75:1483142400000:Y
WxolbacdhsNvgIyzqEk5NjPxXQ

Don’t forget to config an Admin with Password on
your new Rancher UI
Enjoy your Dockers
;)

References

https://github.com/rancher/os

http://rancher.com/rancher-os/

http://rancher.com/announcing-rancher-os/