SlideShare a Scribd company logo
Docker Swarm!
@aluzzardi - @vieux!
Demo!
us-west! us-east!
Docker!
CLI!
Docker!
CLI!
Docker!
CLI!
=! RAM: 2GB!
CPU: 1core!
Demo!
us-west! us-east!
=! RAM: 2GB!
CPU: 1core!
Docker!
CLI!
Docker!
CLI!
Setup using the hosted discovery service!
•  Create a cluster:!
$ swarm create
•  Add nodes to a cluster:!
$ swarm join --discovery=token://<token> --addr=<node_ip>
•  List nodes in a cluster!
$ swarm list --discovery=token://<token>
•  Start Swarm!
$ swarm manage --discovery=token://<token> --addr=<swarm_ip>
!
!
Setup using your own discovery service!
•  Add nodes to a cluster:!
$ swarm join --discovery=etcd://<etcd_ip>/foobar --addr=<node_ip>
•  List nodes in a cluster!
$ swarm list --discovery=etcd://<etcd_ip>/foobar
•  Start Swarm!
$ swarm manage –discovery=etcd://<etcd_ip>/foobar --addr=<swarm_ip>
!
Note: consul and etcd can be used, zookeeper support on it’s way.!
!
!
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” …
•  More to come, ex: affinity!
!
Rescheduling!
•  Rescheduling policies; similar to `--restart`!
•  Pending status!
!
!
!
Swarm scheduler!
2 steps:!
!
•  1- Apply filters to exclude nodes!
" "- ports!
" "- labels!
" "- health!
•  2- Use a strategy to pick the best node!
" "- bin packing!
" "- random!
!
!
!
!
Contributions are welcome ☺ :!
http://github.com/docker/swarm!
@aluzzardi - @vieux!
Thank You.!

More Related Content

PPTX
Swarm - A Docker Clustering System
PPTX
Docker Swarm Introduction
PDF
Docker Swarm 0.2.0
PDF
The age of orchestration: from Docker basics to cluster management
PPTX
Introduction to docker swarm
PDF
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
PPTX
Introction to docker swarm
PDF
Swarm - A Docker Clustering System
Docker Swarm Introduction
Docker Swarm 0.2.0
The age of orchestration: from Docker basics to cluster management
Introduction to docker swarm
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Introction to docker swarm

What's hot (20)

PPTX
Docker Machine & Docker Swarm
PDF
Docker swarm introduction
PDF
Docker Online Meetup #28: Production-Ready Docker Swarm
PDF
Docker 1.12 and swarm mode
PPTX
Docker Swarm for Beginner
PDF
Swarm mode
PDF
Deploying and Scaling a Rails Application with Docker and Friends
PDF
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
PDF
Consul and docker swarm cluster
PPTX
Load Balancing Apps in Docker Swarm with NGINX
PPTX
Introducing Docker Swarm - the orchestration tool by Docker
PPTX
Docker Networking & Swarm Mode Introduction
PDF
Deep Dive into Docker Swarm Mode
PPTX
Docker 1.5
PDF
Docker swarm reloaded
PDF
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
PDF
Consuming Cinder from Docker
PDF
Docker in production service discovery with consul - road to opscon 2015
PDF
Fluentd and docker monitoring
PDF
What’s new in Swarm 1.1
 
Docker Machine & Docker Swarm
Docker swarm introduction
Docker Online Meetup #28: Production-Ready Docker Swarm
Docker 1.12 and swarm mode
Docker Swarm for Beginner
Swarm mode
Deploying and Scaling a Rails Application with Docker and Friends
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Consul and docker swarm cluster
Load Balancing Apps in Docker Swarm with NGINX
Introducing Docker Swarm - the orchestration tool by Docker
Docker Networking & Swarm Mode Introduction
Deep Dive into Docker Swarm Mode
Docker 1.5
Docker swarm reloaded
ContainerDayVietnam2016: Lesson Leanred on Docker 1.12 and Swarm Mode
Consuming Cinder from Docker
Docker in production service discovery with consul - road to opscon 2015
Fluentd and docker monitoring
What’s new in Swarm 1.1
 
Ad

Similar to Dockercon Swarm Updated (20)

PDF
Dockertaipei 20150528-dockerswarm
PPTX
Docker Swarm scheduling in 1.12
PPTX
Building a Docker v1.12 Swarm cluster on ARM
PDF
Docker swarm workshop
PDF
Swarm: Native Docker Clustering
PDF
Docker Swarm Meetup (15min lightning)
PDF
Docker Clustering - Batteries Included
PDF
DockerDay2015: Docker orchestration for sysadmin
PDF
Clustering Docker with Docker Swarm on openSUSE
PDF
PDF
Swarm docker bangalore_meetup
PDF
Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
PDF
Docker Swarm: Docker Native Clustering
PDF
Artem Zhurbila - docker clusters (solit 2015)
PDF
Docker Orchestration at Production Scale
PDF
AstriCon 2017 - Docker Swarm & Asterisk
PDF
Dokcer swarm
PDF
DockerCon SF 2015: Orchestration for Sysadmins
PDF
What's New in Docker 1.12?
PDF
swarmmode-dojo
Dockertaipei 20150528-dockerswarm
Docker Swarm scheduling in 1.12
Building a Docker v1.12 Swarm cluster on ARM
Docker swarm workshop
Swarm: Native Docker Clustering
Docker Swarm Meetup (15min lightning)
Docker Clustering - Batteries Included
DockerDay2015: Docker orchestration for sysadmin
Clustering Docker with Docker Swarm on openSUSE
Swarm docker bangalore_meetup
Docker swarm-mike-goelzer-mv-meetup-45min-workshop 02242016 (1)
Docker Swarm: Docker Native Clustering
Artem Zhurbila - docker clusters (solit 2015)
Docker Orchestration at Production Scale
AstriCon 2017 - Docker Swarm & Asterisk
Dokcer swarm
DockerCon SF 2015: Orchestration for Sysadmins
What's New in Docker 1.12?
swarmmode-dojo
Ad

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
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Approach and Philosophy of On baking technology
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PDF
Advanced IT Governance
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Chapter 3 Spatial Domain Image Processing.pdf
Big Data Technologies - Introduction.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Approach and Philosophy of On baking technology
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Spectral efficient network and resource selection model in 5G networks
NewMind AI Weekly Chronicles - August'25 Week I
Advanced Soft Computing BINUS July 2025.pdf
NewMind AI Monthly Chronicles - July 2025
Teaching material agriculture food technology
Cloud computing and distributed systems.
Advanced IT Governance
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
The Rise and Fall of 3GPP – Time for a Sabbatical?
20250228 LYD VKU AI Blended-Learning.pptx

Dockercon Swarm Updated

  • 3. Demo! us-west! us-east! =! RAM: 2GB! CPU: 1core! Docker! CLI! Docker! CLI!
  • 4. Setup using the hosted discovery service! •  Create a cluster:! $ swarm create •  Add nodes to a cluster:! $ swarm join --discovery=token://<token> --addr=<node_ip> •  List nodes in a cluster! $ swarm list --discovery=token://<token> •  Start Swarm! $ swarm manage --discovery=token://<token> --addr=<swarm_ip> ! !
  • 5. Setup using your own discovery service! •  Add nodes to a cluster:! $ swarm join --discovery=etcd://<etcd_ip>/foobar --addr=<node_ip> •  List nodes in a cluster! $ swarm list --discovery=etcd://<etcd_ip>/foobar •  Start Swarm! $ swarm manage –discovery=etcd://<etcd_ip>/foobar --addr=<swarm_ip> ! Note: consul and etcd can be used, zookeeper support on it’s way.! ! !
  • 6. Resource Management! •  Memory! " "$ docker run -m 1g … •  CPU! " "$ docker run -c 1 … •  Ports! " "$ docker run -p 80:80 … •  More to come, ex: network interfaces! ! ! !
  • 7. 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” … •  More to come, ex: affinity! !
  • 8. Rescheduling! •  Rescheduling policies; similar to `--restart`! •  Pending status! ! ! !
  • 9. Swarm scheduler! 2 steps:! ! •  1- Apply filters to exclude nodes! " "- ports! " "- labels! " "- health! •  2- Use a strategy to pick the best node! " "- bin packing! " "- random! ! ! ! ! Contributions are welcome ☺ :!