SlideShare a Scribd company logo
Introduction to Swarm
a Docker-native clustering system
@aluzzardi - @vieux - @abronan
Alexandre Beslic
@abronan
Introduction
Demo
Upcoming features
Q&A
Today
Docker
CLI
Docker
CLI
Docker
CLI
With Docker Swarm
Docker
CLI
Docker
CLI
Swarm
Swarm in a nutshell
• Exposes several Docker Engines as a single virtual Engine
• Serves the standard Docker API
• Extremely easy to get started
• Batteries included 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
Swarm 0.2.0
• Docker REST API (>85%)
• Resource management (CPU, Mem, Networking)
• Advanced scheduling with constraints and affinities
• Multiple Discovery Backends (hub, etcd, consul, zookeeper)
• TLS: Encryption & Authentication
Setup using the hosted discovery service
• Create a cluster:
$ swarm create
• Add nodes to a cluster:
$ swarm join --add=<node_ip> token://<token>
• Start Swarm
$ swarm manage --addr=<swarm_ip> token://<token>
Or you can use your own etcd, zookeeper or consul
Contributions are welcome ☺ :
Swarm Scheduler
2 steps:
• 1- Apply filters to exclude nodes
- ports
- constraints
- affinity
- health
- dependency
• 2- Use a strategy to pick the best node
- binpack
- spread
- random Contributions are welcome ☺ :
Resource Management
• Memory
$ docker run -m 1g …
• CPU
$ docker run -c 1 …
• Ports
$ docker run -p 80:80 …
• More to come, ex: network interfaces
Constraints
• Standard constraints induced from docker info
docker run -e “constraint:operatingsystem==*fedora*” …
docker run -e “constraint:storagedriver==*aufs*” …
• Custom constraints with host labels
docker -d --label “region==us-east”
docker run -e “constraint:region==us-east” …
• Pin a container to a specific host
docker run –e “constraint:node==ubuntu-2” …
Affinities
• Containers affinities
docker run --name web nginx
docker run -e “affinity:container==web” logger
• Containers Anti-affinities
docker run --name redis-master redis
docker run --name redis-slave -e “affinity:container!=redis*” …
• Images affinities
docker run -e “affinity:image==redis” redis
Soft Affinities
• Containers soft affinities
docker run -d --name redis5 -e affinity:container!=~redis* redis
Swarm Beta: Integrations
• Fully integrated with Machine
$ machine create -d azure --swarm --swarm-discovery token://<token> …
• Partially integrated with Compose
$ DOCKER_HOST=<swarm_addr> compose up
• Mesos & DCOS integration has started in collaboration with Mesosphere.
$ swarm manage -c mesos zk://<zookeeper_addr>/swarm
Demo
Scheduling containers on Swarm
Demo
hdd ssd
Docker
CLI
Docker
CLI= RAM: 4GB
CPU: 1core
Swarm
us-east us-west
Swarm Beta: Upcoming features
• Support for K/V backends (consul, etcd, zookeeper)
• High Availability with replicated state between multiple Managers
• Attempt at Re-scheduling on Node failure
• Networking (libnetwork integration into docker)
On-failure rescheduling
On-failure rescheduling
Docker
CLI
Docker
CLI
Swarm
Node Failure
On-failure rescheduling
Docker
CLI
Docker
CLI
Swarm
Node Failure
High Availability, State replication
Docker
CLI
Docker
CLI
Swarm
Docker
CLI
Swarm
Node Failure
Docker
CLI
Docker
CLI
Swarm
Node Failure
Manager backup instances
Docker
CLI
ManagerBackupBackup
Manager backup instances
Docker
CLI
Manager
BackupBackup
Failure
Manager backup instances
Docker
CLI
Manager
Backup Manager
Failure Swap
Mesos Integration
Mesos cluster
+ + +
Mesos
CLI
Marathon
Mesos cluster + Docker Swarm
+ + +
Docker
CLI
Mesos
CLI
Marathon
Mesos cluster + Docker Swarm
+ + +
Docker
CLI
Mesos
CLI
Docker
Compose
Marathon
http://github.com/docker/swarm
#docker-swarm on freenode
@aluzzardi - @vieux - @abronan
Thank You. Questions?

More Related Content

PDF
Introduction to Docker Compose
PDF
Docker Introduction
PPTX
Docker 101 : Introduction to Docker and Containers
PDF
Introduction to Docker - VIT Campus
PDF
Docker Advanced registry usage
PPTX
Introduction to Docker
PPTX
Docker Security workshop slides
PDF
Docker in real life
Introduction to Docker Compose
Docker Introduction
Docker 101 : Introduction to Docker and Containers
Introduction to Docker - VIT Campus
Docker Advanced registry usage
Introduction to Docker
Docker Security workshop slides
Docker in real life

What's hot (20)

PPTX
Docker: From Zero to Hero
PPTX
Getting started with Docker
PDF
Docker Introduction
PPTX
Docker intro
PPTX
Introduction to Docker - 2017
PPTX
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
PPTX
Docker Swarm for Beginner
PPTX
Kubernetes 101 for Beginners
PPTX
Docker introduction &amp; benefits
PPTX
Docker introduction (1)
PDF
Azure DevOps Tutorial | Developing CI/ CD Pipelines On Azure | Edureka
PDF
Dockerfile Tutorial with Example | Creating your First Dockerfile | Docker Tr...
PPT
Docker introduction
PPTX
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
PPTX
What is Docker
PPTX
Docker Container Security
PDF
Docker Registry V2
PDF
PDF
Kubernetes architecture
PDF
Docker swarm introduction
Docker: From Zero to Hero
Getting started with Docker
Docker Introduction
Docker intro
Introduction to Docker - 2017
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
Docker Swarm for Beginner
Kubernetes 101 for Beginners
Docker introduction &amp; benefits
Docker introduction (1)
Azure DevOps Tutorial | Developing CI/ CD Pipelines On Azure | Edureka
Dockerfile Tutorial with Example | Creating your First Dockerfile | Docker Tr...
Docker introduction
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
What is Docker
Docker Container Security
Docker Registry V2
Kubernetes architecture
Docker swarm introduction
Ad

Viewers also liked (20)

PDF
Container Orchestration from Theory to Practice
PDF
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
PDF
Deeper Dive in Docker Overlay Networks
PDF
Modernizing .NET Apps
PDF
Practical Design Patterns in Docker Networking
PDF
Container-relevant Upstream Kernel Developments
PDF
Modernizing Java Apps with Docker
PDF
Deep Dive into Docker Swarm Mode
PDF
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
PDF
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
PDF
Kubernetes in Docker
PDF
What's New in Docker 1.12?
PDF
Introduction to Docker - IndiaOpsUG
PDF
Monitoring Dell Infrastructure using Docker & Microservices
PDF
Docker on Docker
PDF
LinuxKit Deep Dive
PDF
Introduction to LinuxKit - Docker Bangalore Meetup
PDF
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
PDF
Moby and Kubernetes entitlements
PPTX
Containerd internals: building a core container runtime
Container Orchestration from Theory to Practice
Plug-ins: Building, Shipping, Storing, and Running - Nandhini Santhanam and T...
Deeper Dive in Docker Overlay Networks
Modernizing .NET Apps
Practical Design Patterns in Docker Networking
Container-relevant Upstream Kernel Developments
Modernizing Java Apps with Docker
Deep Dive into Docker Swarm Mode
Docker summit 2015: 以 Docker Swarm 打造多主機叢集環境
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Kubernetes in Docker
What's New in Docker 1.12?
Introduction to Docker - IndiaOpsUG
Monitoring Dell Infrastructure using Docker & Microservices
Docker on Docker
LinuxKit Deep Dive
Introduction to LinuxKit - Docker Bangalore Meetup
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
Moby and Kubernetes entitlements
Containerd internals: building a core container runtime
Ad

Similar to Docker Swarm 0.2.0 (20)

PDF
What’s new in Swarm 1.1
 
PPTX
Introducing Docker Swarm - the orchestration tool by Docker
PDF
Dockertaipei 20150528-dockerswarm
PDF
DockerDay2015: Docker orchestration for sysadmin
PDF
Swarm docker bangalore_meetup
PDF
Swarm mode
PDF
Docker Online Meetup #28: Production-Ready Docker Swarm
PDF
Dockercon Swarm Updated
PDF
Docker Clustering - Batteries Included
PPTX
Introction to docker swarm
PPTX
Docker Swarm scheduling in 1.12
PDF
Clustering Docker with Docker Swarm on openSUSE
PDF
DockerCon SF 2015: Orchestration for Sysadmins
PDF
New Docker Features for Orchestration and Containers
PPTX
Docker session IV: Docker Compose and Docker Swarm
PPTX
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
PPTX
Docker New York Meetup May 2015 - The Docker Orchestration Ecosystem on Azure
PPTX
Containers orchestrators: Docker vs. Kubernetes
PPTX
Docker Machine & Docker Swarm
PPTX
Introduction to docker swarm
What’s new in Swarm 1.1
 
Introducing Docker Swarm - the orchestration tool by Docker
Dockertaipei 20150528-dockerswarm
DockerDay2015: Docker orchestration for sysadmin
Swarm docker bangalore_meetup
Swarm mode
Docker Online Meetup #28: Production-Ready Docker Swarm
Dockercon Swarm Updated
Docker Clustering - Batteries Included
Introction to docker swarm
Docker Swarm scheduling in 1.12
Clustering Docker with Docker Swarm on openSUSE
DockerCon SF 2015: Orchestration for Sysadmins
New Docker Features for Orchestration and Containers
Docker session IV: Docker Compose and Docker Swarm
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
Docker New York Meetup May 2015 - The Docker Orchestration Ecosystem on Azure
Containers orchestrators: Docker vs. Kubernetes
Docker Machine & Docker Swarm
Introduction to docker swarm

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
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Modernizing your data center with Dell and AMD
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Electronic commerce courselecture one. Pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation theory and applications.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Machine learning based COVID-19 study performance prediction
PPTX
A Presentation on Artificial Intelligence
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Modernizing your data center with Dell and AMD
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Unlocking AI with Model Context Protocol (MCP)
Electronic commerce courselecture one. Pdf
The AUB Centre for AI in Media Proposal.docx
Per capita expenditure prediction using model stacking based on satellite ima...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation theory and applications.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Machine learning based COVID-19 study performance prediction
A Presentation on Artificial Intelligence
Encapsulation_ Review paper, used for researhc scholars
Chapter 3 Spatial Domain Image Processing.pdf

Docker Swarm 0.2.0