dockercon eu 2015: getting started with docker

18
Getting started with Docker Sam Alba Director, Core Engineering @sam_alba Jeff Morgan Software Engineer, Kitematic @jmorgan

Upload: docker-inc

Post on 16-Apr-2017

5.887 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: DockerCon EU 2015: Getting Started with Docker

Getting started with Docker

Sam AlbaDirector, Core Engineering@sam_alba

Jeff MorganSoftware Engineer, Kitematic@jmorgan

Page 2: DockerCon EU 2015: Getting Started with Docker

Agenda

1. What is the Docker Platform?• Kitematic• Compose• Machine

2. Build, Ship and Run!

• Swarm• Registry• Engine

3. Demo!

Page 3: DockerCon EU 2015: Getting Started with Docker

What is the Docker Platform?

Page 4: DockerCon EU 2015: Getting Started with Docker

The Docker platform is a set of Tools…

4

Page 5: DockerCon EU 2015: Getting Started with Docker

Each tool has a specific role

5

Page 6: DockerCon EU 2015: Getting Started with Docker

What are the Docker tools?

6

Kitematic & the Docker Toolbox

1.Installs the Docker Platform from the Toolbox

2.Kitematic is a Native UI for Windows and Mac

3.Create containers in one click and inspect its

logs

docker.com/docker-toolbox kitematic.com

Page 7: DockerCon EU 2015: Getting Started with Docker

What are the Docker tools?

7

Kitematic & the Docker Toolbox

Page 8: DockerCon EU 2015: Getting Started with Docker

What are the Docker tools?

8

Docker MachineProvides a CLI to quickly provision a Docker Host

Deploys locally or on a Cloud ProviderAWS, Azure, GCE, DO, Rackspace, VMWare, etc…

$ docker-machine create -d azure \--azure-subscription-id="c4f51be3-784c-xxx-7c50ad9e1b7c" \--azure-subscription-cert="/Users/sam/.ssh/docker-azure-cert.pem" \--azure-location="East US" \--azure-size=Small \--azure-username="sam" \sam-docker-machine-n

Page 9: DockerCon EU 2015: Getting Started with Docker

What are the Docker tools?

9

Docker ComposeDescribe your stack with one file: docker-compose.yml

Run your stack in one command: `docker-compose up`web: build: . command: python app.py ports: - "5000:5000" volumes: - .:/code links: - redis:redis

redis: image: redis

Page 10: DockerCon EU 2015: Getting Started with Docker

What are the Docker tools?

10

Docker RegistryStore and distribute your docker container images

Docker Hub makes it easy: hub.docker.com

$ docker login samalba$ docker pull ubuntu$ docker push samalba/myapp

Page 11: DockerCon EU 2015: Getting Started with Docker

What are the Docker tools?

11

Docker SwarmExposes several Docker Engines as a single virtual Engine

Serves the standard Docker API

Swarm is production ready

DockerCLI

Page 12: DockerCon EU 2015: Getting Started with Docker

What are the Docker tools?

12

Docker Engine (what’s new in 1.9?)

Top-level `docker volumes` command

Support for multi-host overlay networking

Built-in nodes discovery

Docker build now supports build-time args

Experimental support for User namespace

Page 13: DockerCon EU 2015: Getting Started with Docker

Build, Ship and Run!The mission of the Docker Platform

Page 14: DockerCon EU 2015: Getting Started with Docker

Build, Ship and Run!

14

The mission of the Docker Platform

Page 15: DockerCon EU 2015: Getting Started with Docker

Demo!Build a real application with the Docker Platform

Page 16: DockerCon EU 2015: Getting Started with Docker

Walkthrough Overview

16

We’re going to…

Install Docker

Build & run a Java app on our PC

Run the same app on a group of Linux servers

Page 17: DockerCon EU 2015: Getting Started with Docker

What just happened?

17

We built, shipped & ran our first Docker app!

Installed Docker via the Docker Toolbox

We built & ran a Java app with Docker Compose

Deployed this app to a group of Hosts using Docker Swarm

Page 18: DockerCon EU 2015: Getting Started with Docker

Thank you!

Sam AlbaDirector, Core Engineering@sam_alba

Jeff MorganSoftware Engineer, Kitematic@jmorgan