25
(Docker Meetup PDF)

Introduction to Docker, Meetup at University of Bamberg by Hypriot

Embed Size (px)

Citation preview

Page 1: Introduction to Docker, Meetup at University of Bamberg by Hypriot

(Docker Meetup PDF)

Page 2: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Welcome to 1st Docker Meetup at Uni Bamberg

Page 3: Introduction to Docker, Meetup at University of Bamberg by Hypriot

What is Docker?

Page 4: Introduction to Docker, Meetup at University of Bamberg by Hypriot

4

Page 5: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Docker is...

■ both name of company and product of Docker, Inc.

■ located in Silicon Valley, but founder is from France

■ founded in early 2013 and since then “quite” successful

■ the 20th most starred project on Github

5

Page 6: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Funding Rounds

[www.crunchbase.com] 6

Page 7: Introduction to Docker, Meetup at University of Bamberg by Hypriot

[DockerCon15]

Some growth statistics

June 2014 June 2015 Growth

7

Page 8: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Google’s summary about Docker

[https://www.google.de/trends/explore#q=docker] 8

Page 9: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Is it all magic?

■ No.

■ Docker uses “old” concepts, as used in e.g. BSD Jails, Solaris Zones

■ but implements them with modern technologies in smart ways

9

Page 10: Introduction to Docker, Meetup at University of Bamberg by Hypriot

■ Make container technology very accessible

■ Foster community for collaboration

■ Offer huge ecosystem

Disruptive technology

“Smart ways” of Docker

10

Page 11: Introduction to Docker, Meetup at University of Bamberg by Hypriot

What does Docker do?

■ “Docker allows you to package an application with all of its

dependencies into a standardized unit for software development.”

■ “Docker containers wrap up a piece of software in a complete filesystem

that contains everything it needs to run:

code, runtime, system tools, system libraries – anything you can install

on a server. This guarantees that it will always run the same,

regardless of the environment it is running in.”

[www.docker.com] 11

Page 12: Introduction to Docker, Meetup at University of Bamberg by Hypriot

What else does Docker do?

■ Docker enables versioning at operating system level

■ Makes the Internet programmable

Build, ship and run!

12

Page 13: Introduction to Docker, Meetup at University of Bamberg by Hypriot

[Holla, Shrikrishna: Orchestrating Docker]

Evolution of Virtualization

13

Page 14: Introduction to Docker, Meetup at University of Bamberg by Hypriot

[Holla, Shrikrishna: Orchestrating Docker]

How Docker accesses the host OS

14

Page 15: Introduction to Docker, Meetup at University of Bamberg by Hypriot

[ww

w.d

ocke

rboo

k.co

m]

15[Holla, Shrikrishna: Orchestrating Docker]

Page 16: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Example architecture: Reutilize!

16

Page 17: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Docker tools

17

Page 18: Introduction to Docker, Meetup at University of Bamberg by Hypriot

18

Page 19: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Hands on Docker!

19

Page 20: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Use cases to play with Docker

■ Install Docker (either use Docker Toolbox for Mac and Windows or

install it directly on your Linux machine)

■ See how Docker images look like at Dockerhub.com

■ Pull images to your machine and run them

■ Pull a webserver, run it and point your browser to it

■ Build a simple image yourself and run it

■ Run Wordpress and connect a SQL database to it

20

Page 21: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Docker Cluster Demo

21

Page 22: Introduction to Docker, Meetup at University of Bamberg by Hypriot

22

Page 24: Introduction to Docker, Meetup at University of Bamberg by Hypriot

■ Johnston, Joe: Docker in the trenches. Successful production deployment. https://katalog.ub.uni-bamberg.de/query/10/BV043019953

■ Matthias, Karl: Docker. Up and running. https://katalog.ub.uni-bamberg.de/query/10/BV042683772

■ Raj, Pethuru: Learning Docker. https://katalog.ub.uni-bamberg.de/query/10/BV043019899

■ Holla, Shrikrishna: Orchestrating Docker. https://katalog.ub.uni-bamberg.de/query/10/BV042682680

■ Hane, Oskar: Build your own PaaS with Docker. https://katalog.ub.uni-bamberg.de/query/10/BV042683263

■ Khare, Neependra: Docker cookbook. https://katalog.ub.uni-bamberg.de/query/10/BV043019781

UniBib’s Literature

24

Page 25: Introduction to Docker, Meetup at University of Bamberg by Hypriot

Tiny Docker cheatsheet■ Run a container

docker run <options> user/repo:tag

See https://docs.docker.com/engine/reference/run/

■ List all running containers on a machine

docker ps

■ List all downloaded Docker images on a host

docker images

25

http://downloads.hypriot.com/docker_meetup_uniba_20160114.pdf

Download Meetup presentation: