intro to docker (hands-on session)

49
@beacloudgenius Intro to Docker

Upload: nilesh-londhe

Post on 26-Jan-2017

126 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Intro to Docker (hands-on session)

@beacloudgenius

Intro to Docker

Page 2: Intro to Docker (hands-on session)

Happy to see you all online2

Page 3: Intro to Docker (hands-on session)

Your questions help us drive better.

Questions in chat... any time.3

Page 4: Intro to Docker (hands-on session)

https://LinkedIn.com/in/LONDHE

4

IAS Topper

Founder

Who am I

Nilesh Londhe

Page 5: Intro to Docker (hands-on session)

CloudGenius5

The fastest way for you to be productive on your job

Page 6: Intro to Docker (hands-on session)

CloudGenius6

Rated as top 10 cloud programby CIO Magazine

Page 7: Intro to Docker (hands-on session)

Our graduates work at7

Page 8: Intro to Docker (hands-on session)

8

Page 9: Intro to Docker (hands-on session)

Train for mastery9

¨ Real work doesn’t have silly tests

¨ Business situations have nuances

¨ We deal with professionals like you¤ not kindergarteners

Page 10: Intro to Docker (hands-on session)

10

Why Docker?

Page 11: Intro to Docker (hands-on session)

11

Simplifies container

management

Page 12: Intro to Docker (hands-on session)

12

Common standard among leaders

Google, Microsoft, Amazon, Cisco, HP, IBM, RedHat, VMWare, and others

Page 13: Intro to Docker (hands-on session)

13

Resource Efficiency

Page 14: Intro to Docker (hands-on session)

14

Integration with Linux Kernel

Page 15: Intro to Docker (hands-on session)

15

Fast

Page 16: Intro to Docker (hands-on session)

16

Agile

Page 17: Intro to Docker (hands-on session)

17

Flexible

Page 18: Intro to Docker (hands-on session)

18

Lightweight

Page 19: Intro to Docker (hands-on session)

19

Inexpensive

Page 20: Intro to Docker (hands-on session)

20

Open source

Page 21: Intro to Docker (hands-on session)

21

Ecosystem

Page 22: Intro to Docker (hands-on session)

22

Cloudy

Page 23: Intro to Docker (hands-on session)

23

Enables Consistent

Environments

Page 24: Intro to Docker (hands-on session)

24

What’s Docker?

Page 25: Intro to Docker (hands-on session)

25

DotCloudrenamed

Docker Inc.

Page 26: Intro to Docker (hands-on session)

26

Go Lang

v1.0 in mid 2014

Page 27: Intro to Docker (hands-on session)

27

Docker automates application deployment in lightweight, portable, self sufficient containers

that run anywhere*.

Page 28: Intro to Docker (hands-on session)

28

What?Unix chroot

BSD jailsSolaris Zones

Page 29: Intro to Docker (hands-on session)

29

What?linux containers

layered file systemgit like versioning

REST API

Page 30: Intro to Docker (hands-on session)
Page 31: Intro to Docker (hands-on session)

31

DockerIsolated

lightfaster than VMs

Page 32: Intro to Docker (hands-on session)

32

SetupUse Cloud Genius Workstation

or curl -sSL https://get.docker.com/ | sh

Page 33: Intro to Docker (hands-on session)

33

TerminologyDocker Daemon = Server

Docker Client = Client

Page 34: Intro to Docker (hands-on session)

34

TerminologyImage is a snapshotContainer is instantiation of an image

Page 35: Intro to Docker (hands-on session)

35

TerminologyDocker Registry is warehouse of imagesDocker Repository is a project in registry

Page 36: Intro to Docker (hands-on session)

36

Basic usagedocker pull <image>docker imagesdocker run <image> <command>docker psdocker logs <container>

Page 37: Intro to Docker (hands-on session)

37

Hands-on

Page 38: Intro to Docker (hands-on session)

38

AutomationDockerfile – series of commands

Page 39: Intro to Docker (hands-on session)

DockerfileFROM ubuntuENV THIS_IS_AWESOME trueRUN apt-get updateRUN apt-get -y install fortunes cowsayCMD /usr/games/fortune -a | /usr/games/cowsay

Page 40: Intro to Docker (hands-on session)

40

builddocker build -t cloudgenius/holycow .

Page 41: Intro to Docker (hands-on session)

41

pushdocker push cloudgenius/holycow

Page 42: Intro to Docker (hands-on session)

42

rundocker run cloudgenius/holycow

Page 43: Intro to Docker (hands-on session)

43

you pulldocker pull cloudgenius/holycow

Page 44: Intro to Docker (hands-on session)

44

you rundocker run cloudgenius/holycow

Page 45: Intro to Docker (hands-on session)

45

Communityhttps://chat.cloudgeni.us

Page 46: Intro to Docker (hands-on session)

46

Instructor Led Online Courses

Page 47: Intro to Docker (hands-on session)

47

Self-paced On-demand

Courses

Page 48: Intro to Docker (hands-on session)

48

Interactive Videoconference

Bootcamps

Page 49: Intro to Docker (hands-on session)

49

Thank you.

be.a.cloudgeni.us