introduction to docker

Post on 10-Jul-2015

118 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Good Morning.

dockerPython Indonesia Meet Up

October 2013

Sefrinaldi | @sfrnldiSoftware Engineer at Infinyscloud

I’m a .Net guy.

Infinyscloud.com

@sfrnldi

Knowing each other...

Docker is...

A container management tool.

Created by folks at dotCloud

Based on dotCloud backend engine

..to make LXC easier to use.

LXC Let you run a Linux system

within another Linux system

Linux Container “A group of processes on a Linux

box, put together in an isolated env”.

Re-write

Reasons to use Docker

You’re a hipster

Re-installing Ubuntu from scratch is not fun.

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

using VM

VM uses too many resource.

Want to ship everything around the application, configuration,

libs used, etc etc...

Developer can guaranty that what he has create and run here

can run smoothly over there.

The chalenges.

The chalenges

The Matrix From Hell

The solution.

Create a standard shipment method.

The solution

“Build once...run anywhere” ~ Developer

“Configure once...run anything” ~ DevOps

Docker under the hood.

File System

Docker Layers

Read-only

Docker Image

The read-

onlylayer

Docker Container

Docker Container

Docker Index / Registry

Getting started.

Dockerfile.

Dockerfile.

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

Pull an Image“docker pull ubuntu:quantal”

Get list of Docker images“docker image”

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

Get list of Docker container“docker ps -a”

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

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

Let’s try it out!

Thanks for listening...

top related