+ All Categories
Home > Technology > RancherOS - The perfect place to run Docker

RancherOS - The perfect place to run Docker

Date post: 12-Apr-2017
Category:
Upload: saputro-aryulianto
View: 76 times
Download: 0 times
Share this document with a friend
23
Saputro Aryulianto [email protected] Operations Boot Camp I RancherOS The perfect place to run Docker
Transcript
Page 1: RancherOS - The perfect place to run Docker

Saputro [email protected]

Operations Boot Camp I

RancherOS The perfect place to run Docker

Page 2: RancherOS - The perfect place to run Docker

Hi,

● Ary● System Administrator at Pusilkom UI for

General Elections Commissions of Republic of Indonesia ● OpenStack Engineer at PT. Boer Technology (Btech)● GNU/Linux Bogor (GLiB) Activist ● Local Commitee at GNOME.Asia Summit 2015● Speakers at openSUSE.Asia Summit 2016● Amateur Dota2 Player :)

Page 3: RancherOS - The perfect place to run Docker

3

Overview of

Page 4: RancherOS - The perfect place to run Docker

4

Never Search On Google Images!

Page 5: RancherOS - The perfect place to run Docker

5

Overview of RancherOS

● RancherOS is a minimalist Linux distribution perfect for running Docker containers. By running Docker directly on top of the kernel and delivering Linux services as containers, RancherOS delivers just what you need to build what you want.

Page 6: RancherOS - The perfect place to run Docker

6

H/W Requirement

● x86_64 server with at least 512MB of RAM.– If you are planning on installing to disk, you will need at

least 1024MB of RAM.

Page 7: RancherOS - The perfect place to run Docker

7

How This Works

Page 8: RancherOS - The perfect place to run Docker

8

How This Works

● Everything in RancherOS is a Docker container. We accomplish this by launching two instances of Docker.

● One is what we call the system Docker which runs as the first process. System Docker then launches a container that runs the user Docker. The user Docker is then the instance that gets primarily used to create containers.

Page 9: RancherOS - The perfect place to run Docker

9

Quick Start Guide

Page 10: RancherOS - The perfect place to run Docker

10

Launching RancherOS Using Docker Machine

● Launching RancerOS Using Docker Machine– docker-machine create -d virtualbox --virtualbox-boot2docker-url https://releases.rancher.com/os/latest/rancheros.iso <MACHINE-NAME>

● That’s it! You’re up and running a RancherOS instance.

Page 11: RancherOS - The perfect place to run Docker

11

Launching RancherOS Using Docker Machine

● To login to the instance, just use the docker-machine command.– docker-machine ssh <MACHINE-NAME>

● Point your docker client to the docker daemon inside the VM– eval $(docker-machine env rancherosary)

● Test!– docker run -p 80:80 -p 443:443 -d nginx

Page 12: RancherOS - The perfect place to run Docker

12

Installing RancherOS to disk

Page 13: RancherOS - The perfect place to run Docker

13

Managing Versions

● You can find the current version of your operating system by running the command:– [rancher@rancheros-99 ~]$ sudo ros os version

v0.7.0● To view all available releases:

– [rancher@rancheros-99 ~]$ sudo ros os list

rancher/os:v0.7.0 remote

rancher/os:v0.7.1 remote

rancher/os:v0.8.0 remote

Page 14: RancherOS - The perfect place to run Docker

14

Managing Versions

● You can install the latest stable version by running the command ros os upgrade or by selecting a version with the -i parameter:– [rancher@rancheros-99 ~]$ sudo ros os upgrade -i rancher/os:v0.9.0

Page 15: RancherOS - The perfect place to run Docker

15

Managing Docker Versions

● To view available versions:– [rancher@rancheros-99 ~]$ sudo ros engine list

disabled docker-1.10.3

disabled docker-1.11.2

current docker-1.12.1

Page 16: RancherOS - The perfect place to run Docker

16

Managing Docker Versions

● To switch version:– [rancher@rancheros-99 ~]$ sudo ros engine switch docker-1.11.2

INFO[0000] Project [os]: Starting project

INFO[0000] [0/19] [docker]: Starting

INFO[0010] Recreating docker

INFO[0010] [1/19] [docker]: Started

Page 17: RancherOS - The perfect place to run Docker

17

Docker Swarm Clusters on RancherOS

Page 18: RancherOS - The perfect place to run Docker

18

Topology

Page 19: RancherOS - The perfect place to run Docker

19

Docker Swarm

● We’ll start by making our Docker Swarm cluster– docker swarm init --advertise-addr 192.168.0.100

● Join worker to Swarm Cluster– docker swarm join \

--token SWMTKN-1xxxxxxxxxxx● Verify node on Manager

– docker node ls

Page 20: RancherOS - The perfect place to run Docker

20

Reference

● https://docs.rancher.com/os/● https://blog.selectel.com/virtual-private-cloud-co

reos-rancheros/

Page 21: RancherOS - The perfect place to run Docker

21

Q & A

Page 22: RancherOS - The perfect place to run Docker

22

Thank You!

Page 23: RancherOS - The perfect place to run Docker

23

Keep in Touch :)

● www.aryulianto.com● https://www.twitter.com/saputroyulianto● https://www.facebook.com/saputroaryulianto● https://www.linkedin.com/in/aryulianto● https://t.me/aryulianto ● Telegram: @aryulianto


Recommended