dockercon eu 2015: getting started with docker
TRANSCRIPT
Getting started with Docker
Sam AlbaDirector, Core Engineering@sam_alba
Jeff MorganSoftware Engineer, Kitematic@jmorgan
Agenda
1. What is the Docker Platform?• Kitematic• Compose• Machine
2. Build, Ship and Run!
• Swarm• Registry• Engine
3. Demo!
What is the Docker Platform?
The Docker platform is a set of Tools…
4
Each tool has a specific role
5
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
What are the Docker tools?
7
Kitematic & the Docker Toolbox
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
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
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
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
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
Build, Ship and Run!The mission of the Docker Platform
Build, Ship and Run!
14
The mission of the Docker Platform
Demo!Build a real application with the Docker Platform
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
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
Thank you!
Sam AlbaDirector, Core Engineering@sam_alba
Jeff MorganSoftware Engineer, Kitematic@jmorgan