Introduction to Docker


The Presentation inside:

Slide 0

Introduction to Docker


Slide 1

@botchagalupe • a.k.a. John Willis • 35 Years in IT Operations • Exxon, Canonical, Chef, Enstratius, Socketplane • Devopsdays Core Organizer


Slide 2

Agenda • Part 1 (Overview)! • Why Docker?! • Docker Platform! • Docker Solutions! • Part 2 (Docker and Devops)! • Part 3 (Demos)! • Docker Installation! • Docker (Basic Image) Workflow! • Docker (Build) Workflow! • Docker (Volumes) Workflow! • Docker Networking


Slide 3

Docker Blog


Slide 4

Why Docker? • Isolation • Lightweight • Simplicity • Workflow • Community


Slide 5

Killer Apps • Local Application Development and Test • CI/CD • Containers as a Service • Build your own Pass


Slide 6

Docker Community • 21,500+ GitHub stars • 400M+ Docker Engine downloads • 100,000+ "Dockerized" applications in the Docker Hub Registry • 180+ Docker Meetup Groups in 50 countries • 150,000 live apps are running off Docker • 930+ community contributors • 3 to 4 Million - Developers using Docker • 50,000 third-party projects on GitHub using Docker as well as partnerships spanning PaaS, operating systems, hosting services, CI platforms, and more. • Over 100 user-generated case studies available from companies such as eBay, Rackspace, New Relic, Gilt, Spotify, Cloudflare, Yandex, Cambridge Healthcare, Yelp and RelatelQ.


Slide 7


Slide 8

Docker Engine • Docker Daemon • Docker CLI


Slide 9

Docker Daemon • Builds Images • Runs and Manages Containers • RESTful API


Slide 10

Docker CLI • docker build # Build an image from a Dockerfile • docker images # List all images on a Docker host • docker run # Run an image • docker ps # List all running and stopped instances • docker stop # Stop a running instances • docker rm # Remove an instance • docker rmi # Remove an image


Slide 11

Docker Architecture


Slide 12

Docker Platform Workflow (Volumes)


Slide 13

Docker Hub • Provides Docker Services • Library of public images • Storage for your images • • • free for public images cost for private images Automated builds(link github/bitbucket repo; trigger build on commit)


Slide 14

Docker Hub


Slide 15

Docker Solutions • Docker Compose • Docker Machine • Docker Swarm • Kitematic • Docker Networking • Docker Trusted Registry


Slide 16

Docker Compose


Slide 17

Docker Machine • Install Docker on a Host • Starting, stopping, restarting the Docker Engine • Upgrading Docker on a Host • Configuring the Docker client to talk to your host 
 (TLS)


Slide 18

Docker Swarm • Discovery Services • Advanced Scheduling • API


Slide 19

Docker Networking


Slide 20

Docker Networking “We'll do for Networking, What Docker did for Compute.”


Slide 21

Docker Networking • Make “network” & “service” as top-level objects ! • Provide a pluggable networking stack ! • Span networks across multiple hosts ! • Support multiple platforms


Slide 22

Container Network Model (CNM) • Endpoint ! • Network ! • Sandbox


Slide 23

Libnetwork Open Sourced in April • ! Over 200 Pull Requests • ! Over 200 GitHub Stars • ! • Windows and FreeBSD ports in progress


Slide 24


Slide 25

Part 2


Slide 26

Docker and Devops


Slide 27

Docker and Devops


Slide 28

Docker and Devops • Velocity • Variation • Visualization


Slide 29

Part 3


Slide 30

Docker Installation


Slide 31

Docker Installation


Slide 32

Docker Installation


Slide 33


Slide 34

Demo


Slide 35

Docker Run Commands


Slide 36

Docker Platform Workflow (Build Images) • Build a Local Image • Run an Image on Docker Host


Slide 37


Slide 38

Demo


Slide 39

Docker Build


Slide 40

Docker Platform Workflow (Volumes) • Using Volumes • Mounting Docker Host Volumes


Slide 41

Docker Platform Workflow (Volumes)


Slide 42


Slide 43

Demo


Slide 44

Docker Volumes


Slide 45

Docker Networking


Slide 46

Docker Networking


Slide 47

Docker Networking


Slide 48

Docker Networking


Slide 49

Docker Networking


Slide 50

Docker Networking • Weave • Flannel • Calico • Triton • Socketplane


Slide 51

Docker Networking


Slide 52

Docker Networking • Container Network Model (or CNM) • Notion of a Default Network • Default Multi-Host Data-path for CNM • Network API • Docker Network CLI


Slide 53

References WHY I LOVE DOCKER… AND WHY YOU’LL LOVE IT TOO! https://blog.docker.com/2015/03/why-i-love-docker-and-why-youll-love-it-too/! ! DOCKER TUTORIAL 1 – INSTALLING DOCKER! https://blog.docker.com/2015/03/docker-tutorial-1-installing-docker/! ! DOCKER TUTORIAL 2 – DOCKER RUN COMMAND BASICS! https://blog.docker.com/2015/03/docker-tutorial-2-docker-run-command-basics/! ! DOCKER TUTORIAL 3 – FUN WITH VOLUMES! https://blog.docker.com/2015/04/docker-tutorial-3-fun-with-volumes/! ! DOCKER TUTORIAL 4 – MORE RUN WITH A COUPLE OF EXTRA GOODIES! https://blog.docker.com/2015/04/docker-tutorial-4-more-run-with-a-couple-of-extra-goodies/! ! DOCKER TUTORIAL 6 – DOCKERFILE (PART 1)! https://blog.docker.com/2015/04/docker-tutorial-6-dockerfile-part-1/! ! DOCKER TUTORIAL 7 – DOCKERFILE (PART 2)! https://blog.docker.com/2015/04/docker-tutorial-7-dockerfile-part-2/


Slide 54

[email protected] @botchagalupe


Slide 55


×

HTML:





Ссылка: