introduction to docker

49
Good Morning.

Upload: sefrinaldi-zen

Post on 10-Jul-2015

118 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Introduction to Docker

Good Morning.

Page 2: Introduction to Docker

dockerPython Indonesia Meet Up

October 2013

Sefrinaldi | @sfrnldiSoftware Engineer at Infinyscloud

Page 3: Introduction to Docker

I’m a .Net guy.

Page 4: Introduction to Docker

Infinyscloud.com

Page 5: Introduction to Docker

@sfrnldi

Page 6: Introduction to Docker
Page 7: Introduction to Docker

Knowing each other...

Page 8: Introduction to Docker

Docker is...

Page 9: Introduction to Docker

A container management tool.

Page 10: Introduction to Docker

Created by folks at dotCloud

Page 11: Introduction to Docker

Based on dotCloud backend engine

Page 12: Introduction to Docker

..to make LXC easier to use.

Page 13: Introduction to Docker

LXC Let you run a Linux system

within another Linux system

Page 14: Introduction to Docker

Linux Container “A group of processes on a Linux

box, put together in an isolated env”.

Page 15: Introduction to Docker

Re-write

Page 16: Introduction to Docker

Reasons to use Docker

Page 17: Introduction to Docker

You’re a hipster

Page 18: Introduction to Docker

Re-installing Ubuntu from scratch is not fun.

Page 19: Introduction to Docker

The only possible thing format to ship code with it's environment is

using VM

Page 20: Introduction to Docker

VM uses too many resource.

Page 21: Introduction to Docker

Want to ship everything around the application, configuration,

libs used, etc etc...

Page 22: Introduction to Docker

Developer can guaranty that what he has create and run here

can run smoothly over there.

Page 23: Introduction to Docker

The chalenges.

Page 24: Introduction to Docker

The chalenges

Page 25: Introduction to Docker

The Matrix From Hell

Page 26: Introduction to Docker

The solution.

Page 27: Introduction to Docker

Create a standard shipment method.

Page 28: Introduction to Docker

The solution

Page 29: Introduction to Docker

“Build once...run anywhere” ~ Developer

Page 30: Introduction to Docker

“Configure once...run anything” ~ DevOps

Page 31: Introduction to Docker

Docker under the hood.

Page 32: Introduction to Docker

File System

Page 33: Introduction to Docker

Docker Layers

Read-only

Page 34: Introduction to Docker

Docker Image

The read-

onlylayer

Page 35: Introduction to Docker

Docker Container

Page 36: Introduction to Docker

Docker Container

Page 37: Introduction to Docker

Docker Index / Registry

Page 38: Introduction to Docker

Getting started.

Page 39: Introduction to Docker

Dockerfile.

Page 40: Introduction to Docker

Dockerfile.

Page 41: Introduction to Docker

Build a Docker Image“docker build -t sfrnld/newimg .”

Page 42: Introduction to Docker

Pull an Image“docker pull ubuntu:quantal”

Page 43: Introduction to Docker

Get list of Docker images“docker image”

Page 44: Introduction to Docker

Create a Container “docker run -i -t ubuntu:quantal /bin/bash”

Page 45: Introduction to Docker

Get list of Docker container“docker ps -a”

Page 46: Introduction to Docker

Commit a Container“docker commit 275fd72a5f62 sfrnld/newimages”

Page 47: Introduction to Docker

Push an Image to Repository“docker push sfrnld/demo”

Page 48: Introduction to Docker

Let’s try it out!

Page 49: Introduction to Docker

Thanks for listening...