redhat logo

Intro: Docker and Kubernetes training

Christian Posta
10/19/2015

Who

ceposta

Principal Middleware Architect

Blog: http://blog.christianposta.com

Twitter: @christianposta

Email: christian@redhat.com

  • Committer on Apache ActiveMQ, Apache Camel, Fabric8

  • Technology evangelist, recovering consultant

  • Spent a lot of time working with one of the largest Microservices, web-scale, unicorn companies

  • Frequent blogger and speaker about open-source, cloud, microservices

Agenda

  • Intro / Prep Environments

  • Day 1: Docker Deep Dive

  • Day 2: Kubernetes Deep Dive

  • Day 3: Advanced Kubernetes: Concepts, Management, Middleware

  • Day 4: Advanced Kubernetes: CI/CD, open discussions

 

redhat logo

Setting up Docker locally

Prep Environments

  • Lab prerequisites in place!

  • Verify you have Oracle VirtualBox 4.3.x

  • Install Docker (https://docs.docker.com/installation/)

    • NOTE: for OS X, you can use brew: brew install docker-machine

  • Windows: need to have HVT

  • Understand the architecture

  • Smoke test

Simple docker architecture

docker-linux-arch docker-arch-windows

Smoke test environment

Run the following commands from shell:

docker info

Output:

Containers: 0
Images: 0
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: tmpfs
 Dirs: 0
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.10-boot2docker
Operating System: Boot2Docker 1.8.3 (TCL 6.4); master : af8b089 - Mon Oct 12 18:56:54 UTC 2015
CPUs: 1
Total Memory: 1.956 GiB
Name: default
ID: 54V7:OQNP:A4GT:D2T5:USDN:QLUG:PDOC:4I7I:I3O4:XW62:RCUP:24A7
Debug mode (server): true
File Descriptors: 10
Goroutines: 16
System Time: 2015-10-15T23:34:17.354643925Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
 provider=virtualbox

Smoke test environment

Run the following commands from shell:

docker ps

Output:

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

So what’s so special?

docker-animated-1

Installing Kubernetes…

We will be installing kubernetes 1.0.6 later in the hands-on sections. To do that we’ll need vagrant, so lets install that right now.

Make sure you have Virtual Box 4.3.x installed: BTW, docker machine will install 5.x Virtual Box; this will not be sufficent. Go ahead and install the 4.3.x version of Virtual Box

 

redhat logo

Continue on to Day 1 presentations!