SlideShare a Scribd company logo
Orchestration for Sysadmins
Andrea Luzzardi / Victor Vieux
Software Engineers @ docker
Agenda
• Introduction to Docker Swarm
• Swarm Fault Tolerance: Replication
• Integrating Swarm with Mesos
• Provisioning Swarm with Docker Machine
“Running containers on multiple hosts.”
Swarm in a nutshell
• Exposes several Docker Engines as a single virtual Engine
• Serves the standard Docker API
• Extremely easy to get started
• Batteries includes but swappable
Timeline
Oct
Nov
Dec
Jan
Feb
Jun
Proof of Concept
DockerCon EU
Open Repository
First Release Candidate
Swarm Beta Release
Global Hack Day
Open Proposal
0.2.0 Release
0.3.0 Release
Apr
Setting up Swarm
• Create a cluster:
- $ swarm create
• Add nodes to a cluster:
- $ swarm join --advertise=<node_ip> token://<token>
• Start Swarm:
- $ swarm manage -H <swarm_ip> token://<token>
Or you can use your own etcd, zookeeper or consul
Swarm Scheduler
• Resource Management
- Memory, CPU, Network
• Fit containers
- Apply filters to exclude nodes
- Use a strategy to rank and pick the best node
• Scheduling Knobs
- Constraints
- Affinities
“Batteries Included but Swappable”
Docker Swarm + Mesos
• Experimental
• Docker Swarm act as a Mesos Framework
• In collaboration with
$> swarm manage --cluster mesos-experimental <mesos_master_url>
Mesos Cluster
+
Mesos
CLI
Mesos Slaves
+
+
+
+
+
+
+
+
+
+
+
+
+
Mesos Masters
Marathon
Mesos Cluster + Docker Swarm
+
Mesos
CLI
Mesos Slaves
+
+
+
+
+
+
+
+
+
+
+
+
+
Mesos Masters
Marathon
Docker
CLI
Mesos Cluster + Docker Swarm
+
Mesos
CLI
Mesos Slaves
+
+
+
+
+
+
+
+
+
+
+
+
+
Mesos Masters
Marathon
Docker
CLI
shipyard
kitematic compose
BY
Swarm Manager Replication
Replication
Docker
CLI
Swarm Cluster
• Swarm Manager is a
Single Point of Failure
API Request
Manage
Replication
Docker
CLI
Swarm Cluster
• Upon failure it
becomes impossible to
manage the cluster
• Cluster continues to
run un-managed
API Request
Manage
Replica
Replication
Primary
Docker
CLI
Swarm Cluster
Forward
API Request
Manage
Replica
• One primary, many replicas
• Leader Election built on top
of Consul, etcd, ZooKeeper
• Replicas forward API calls to
primary
• CLI can talk to any instance
Replica
Replication
Primary
Docker
CLI
Swarm Cluster
Forward
API Request
Manage
Replica
• Replicas monitor health
of primary instance
• Leader gets re-elected
upon primary failure
PrimaryReplica
Replication
Replica
Docker
CLI
Swarm Cluster
Forward
API Request
Manage
• One replica promoted to
primary
• Other replicas notified of
leadership update
• CLI can continue talking to
same instance
Demo
“From Zero to Docker”
Machine in a nutshell
• Host management for a container centric world
• Provisions Virtual Machines
• Installs & Manages Docker Engine
• Swarm Cluster Provisioning
Machine Provisioning
5 Local Providers
9 Cloud Providers
7 Operating Systems
Machine Management
• Install, Configure & Upgrade Docker Engine
- docker-machine upgrade node-{1,2,3}
• PKI Management
- TLS Encryption & Authentication by default
- CA generation, Key signing and Re-keying
- Seamless integration: Auto-configure the CLI
• Bring Your Own Machine - Generic Driver
Machine Operations
• Operate
- List, Start, Stop and Kill machines
• Debug
- docker-machine ssh node-2
• Script
- docker-machine toolkit: ip, url, …
Machine Clustering
• Integration with Docker Swarm
• Provision Swarm management nodes
• Pre-configure machines to join a Swarm cluster
• Tweak Swarm options
Demo
Thank you, Questions?
Andrea Luzzardi - @aluzzardi
Victor Vieux - @vieux

More Related Content

PDF
DockerCon 2015: Docker Engine Breakout Session
PPTX
DockerCon SF 2015: Orchestration for Devs (machine + compose)
PDF
DockerCon SF 2015: Getting Started w/ Docker
PPTX
DockerCon SF 2015: Networking Breakout
PPT
Kubernetes on CloudStack with coreOS
PPTX
Docker and stuff
PDF
Nebulaworks Docker Overview 09-22-2015
PDF
Introduction to docker
DockerCon 2015: Docker Engine Breakout Session
DockerCon SF 2015: Orchestration for Devs (machine + compose)
DockerCon SF 2015: Getting Started w/ Docker
DockerCon SF 2015: Networking Breakout
Kubernetes on CloudStack with coreOS
Docker and stuff
Nebulaworks Docker Overview 09-22-2015
Introduction to docker

What's hot (20)

PDF
ContainerDayVietnam2016: Containers with OpenStack
PDF
DockerDay2015: Docker orchestration for sysadmin
PPT
Docker and CloudStack
PPTX
Introduction to docker
PPTX
Hashicorp: Delivering the Tao of DevOps
PDF
What's New in Docker 1.12?
PPTX
Docker for the new Era: Introducing Docker,its components and tools
PDF
Docker worshop @Twitter - How to use your own private registry
PDF
Introduction to Docker - Docker workshop @Twitter
PPTX
Comprehensive Monitoring for Docker
PDF
Automated Deployment with Capistrano
PDF
ContainerDayVietnam2016: Docker at scale with Mesos
PDF
ContainerDayVietnam2016: Dockerize a small business
PPTX
Containerization and Docker
PDF
Production Ready Containers from IBM and Docker
PDF
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
PDF
Docker Started
PPTX
DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...
PDF
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
PDF
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
ContainerDayVietnam2016: Containers with OpenStack
DockerDay2015: Docker orchestration for sysadmin
Docker and CloudStack
Introduction to docker
Hashicorp: Delivering the Tao of DevOps
What's New in Docker 1.12?
Docker for the new Era: Introducing Docker,its components and tools
Docker worshop @Twitter - How to use your own private registry
Introduction to Docker - Docker workshop @Twitter
Comprehensive Monitoring for Docker
Automated Deployment with Capistrano
ContainerDayVietnam2016: Docker at scale with Mesos
ContainerDayVietnam2016: Dockerize a small business
Containerization and Docker
Production Ready Containers from IBM and Docker
What's New in Docker 1.12 (June 20, 2016) by Mike Goelzer & Andrea Luzzardi
Docker Started
DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
Building a Docker Swarm cluster on ARM by Dieter Reuter and Stefan Scherer
Ad

Viewers also liked (20)

PDF
DockerCon EU 2015: Day 1 General Session
PPTX
Opening words at DockerCon Europe by Ben Golub
PDF
DockerCon SF 2015: Ben Golub's Keynote Day 1
PDF
Docker Hub Breakout Session at DockerCon by Ken Cochrane
PPTX
DockerCon 15 Keynote - Day 2
PDF
DockerCon SF 2015: Keynote Day 1
PDF
DockerCon SF 2015: Docker at Lyft
PDF
DockerCon EU 2015 - The Latest on Docker Engine
PDF
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
PDF
Mesos vs kubernetes comparison
PDF
Docker 1.11 @ Docker SF Meetup
PPTX
DockerCon SF 2015: Cultural Change using Docker
PPTX
Tyrion Cannister Neural Styles by Dora Korpar and Siphan Bou
PDF
Docker Plugin for Heat II
PDF
Introduction to Docker and Containers
PDF
DockerCon Recap - Online Meetup by Ben Firshman
PDF
Contribute and Collaborate 101
PPTX
Dockerfile Basics Workshop #1
PDF
Distributed, Real-time Web Apps
PDF
Autoscaling Docker Containers by Konstantinos Faliagkas, Docker Birthday #3 A...
DockerCon EU 2015: Day 1 General Session
Opening words at DockerCon Europe by Ben Golub
DockerCon SF 2015: Ben Golub's Keynote Day 1
Docker Hub Breakout Session at DockerCon by Ken Cochrane
DockerCon 15 Keynote - Day 2
DockerCon SF 2015: Keynote Day 1
DockerCon SF 2015: Docker at Lyft
DockerCon EU 2015 - The Latest on Docker Engine
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
Mesos vs kubernetes comparison
Docker 1.11 @ Docker SF Meetup
DockerCon SF 2015: Cultural Change using Docker
Tyrion Cannister Neural Styles by Dora Korpar and Siphan Bou
Docker Plugin for Heat II
Introduction to Docker and Containers
DockerCon Recap - Online Meetup by Ben Firshman
Contribute and Collaborate 101
Dockerfile Basics Workshop #1
Distributed, Real-time Web Apps
Autoscaling Docker Containers by Konstantinos Faliagkas, Docker Birthday #3 A...
Ad

Similar to DockerCon SF 2015: Orchestration for Sysadmins (20)

PPTX
Introduction to docker swarm
PDF
Orchestrating Linux Containers while tolerating failures
PPTX
Introducing Docker Swarm - the orchestration tool by Docker
PPTX
Docker Container Security
PPTX
Docker Swarm Introduction
PDF
Docker Swarm 0.2.0
PDF
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
PDF
Docker Swarm: Docker Native Clustering
PDF
Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
PPTX
Weblogic
PDF
Docker Containers - everything about docker Containers
PDF
What’s new in Swarm 1.1
 
PDF
AtlasCamp 2015: The age of orchestration: From Docker basics to cluster manag...
PDF
Docker Online Meetup #28: Production-Ready Docker Swarm
PDF
DCEU 18: Automating Docker Enterprise: Hands-off Install and Upgrade
PPTX
Everything you need to know about Docker
PDF
Swarm mode
PPTX
Verifying your Ansible Roles using Docker, Test Kitchen and Serverspec
PPTX
LASUG Online: Introduction to Docker and Docker Tools
PDF
Introduction to docker
Introduction to docker swarm
Orchestrating Linux Containers while tolerating failures
Introducing Docker Swarm - the orchestration tool by Docker
Docker Container Security
Docker Swarm Introduction
Docker Swarm 0.2.0
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Docker Swarm: Docker Native Clustering
Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
Weblogic
Docker Containers - everything about docker Containers
What’s new in Swarm 1.1
 
AtlasCamp 2015: The age of orchestration: From Docker basics to cluster manag...
Docker Online Meetup #28: Production-Ready Docker Swarm
DCEU 18: Automating Docker Enterprise: Hands-off Install and Upgrade
Everything you need to know about Docker
Swarm mode
Verifying your Ansible Roles using Docker, Test Kitchen and Serverspec
LASUG Online: Introduction to Docker and Docker Tools
Introduction to docker

More from Docker, Inc. (20)

PDF
Containerize Your Game Server for the Best Multiplayer Experience
PDF
How to Improve Your Image Builds Using Advance Docker Build
PDF
Build & Deploy Multi-Container Applications to AWS
PDF
Securing Your Containerized Applications with NGINX
PDF
How To Build and Run Node Apps with Docker and Compose
PDF
Hands-on Helm
PDF
Distributed Deep Learning with Docker at Salesforce
PDF
The First 10M Pulls: Building The Official Curl Image for Docker Hub
PDF
Monitoring in a Microservices World
PDF
COVID-19 in Italy: How Docker is Helping the Biggest Italian IT Company Conti...
PDF
Predicting Space Weather with Docker
PDF
Become a Docker Power User With Microsoft Visual Studio Code
PDF
How to Use Mirroring and Caching to Optimize your Container Registry
PDF
Monolithic to Microservices + Docker = SDLC on Steroids!
PDF
Kubernetes at Datadog Scale
PDF
Labels, Labels, Labels
PDF
Using Docker Hub at Scale to Support Micro Focus' Delivery and Deployment Model
PDF
Build & Deploy Multi-Container Applications to AWS
PDF
From Fortran on the Desktop to Kubernetes in the Cloud: A Windows Migration S...
PDF
Developing with Docker for the Arm Architecture
Containerize Your Game Server for the Best Multiplayer Experience
How to Improve Your Image Builds Using Advance Docker Build
Build & Deploy Multi-Container Applications to AWS
Securing Your Containerized Applications with NGINX
How To Build and Run Node Apps with Docker and Compose
Hands-on Helm
Distributed Deep Learning with Docker at Salesforce
The First 10M Pulls: Building The Official Curl Image for Docker Hub
Monitoring in a Microservices World
COVID-19 in Italy: How Docker is Helping the Biggest Italian IT Company Conti...
Predicting Space Weather with Docker
Become a Docker Power User With Microsoft Visual Studio Code
How to Use Mirroring and Caching to Optimize your Container Registry
Monolithic to Microservices + Docker = SDLC on Steroids!
Kubernetes at Datadog Scale
Labels, Labels, Labels
Using Docker Hub at Scale to Support Micro Focus' Delivery and Deployment Model
Build & Deploy Multi-Container Applications to AWS
From Fortran on the Desktop to Kubernetes in the Cloud: A Windows Migration S...
Developing with Docker for the Arm Architecture

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation theory and applications.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
KodekX | Application Modernization Development
Unlocking AI with Model Context Protocol (MCP)
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Spectral efficient network and resource selection model in 5G networks
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
The AUB Centre for AI in Media Proposal.docx
Encapsulation theory and applications.pdf
Network Security Unit 5.pdf for BCA BBA.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation_ Review paper, used for researhc scholars
CIFDAQ's Market Insight: SEC Turns Pro Crypto
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
MYSQL Presentation for SQL database connectivity
Building Integrated photovoltaic BIPV_UPV.pdf
Approach and Philosophy of On baking technology
Per capita expenditure prediction using model stacking based on satellite ima...
Chapter 3 Spatial Domain Image Processing.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
KodekX | Application Modernization Development

DockerCon SF 2015: Orchestration for Sysadmins