SlideShare a Scribd company logo
Introduction to Docker Swarm
Hsi-Kai Wang
Outline
• Docker Cluster
• Swarm
• Swarm + Consul + overlay network
What is PC Cluster
• A computer cluster consists of a set of
loosely or tightly connected computers that
work together so that, in many respects,
they can be viewed as a single system.
Unlike grid computers, computer clusters
have each node set to perform the same
task, controlled and scheduled by
software.
Ref: Computer cluster wiki
Docker Cluster Software
• Apchae Mesos
– abstract resource
• docker swarm
– easy way to cluster
– standard Docker API
• kubernetes
– container merge
– sample scaling
What is Swarm
• Docker Swarm is native clustering for
Docker. It turns a pool of Docker hosts
into a single, virtual Docker host. Because
Docker Swarm serves the standard
Docker API, any tool that already
communicates with a Docker daemon can
use Swarm to transparently scale to
multiple hosts.
Software Environment
• OS
– CentOS: 7 (7.1.1503)
• Software
– Docker 1.10 (1.10.3.cs2)
– Docker container network (Docker >= 1.9)
– Swarm (Docker >= 1.5, 2375 port)
– Consul
Swarm cluster
Docker
Host
172.17.33.83
Docker
Host
172.17.33.84
Docker
Host
swarmswarmswarm
Docker
Host
swarm
172.17.33.86
swarm cluster
swarm manager
swarm node
Docker - Setting• # docker install (Commercially Support, CS)
centos:~ # rpm --import https://sks-
keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d5
6f59a178ac6c6238f52e
centos:~ # yum install yum-utils
centos:~ # yum-config-manager --add-repo
https://packages.docker.com/1.10/yum/repo/main/centos/7
centos:~ # yum install docker-engine
centos:~ # systemctl enable docker.service
centos:~ # systemctl start docker.service
centos:~ # docker version # check version >= 1.5
• # docker config
centos:~ # vi /etc/systemd/system/multi-
user.target.wants/docker.serivce
...
ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H
unix:///var/run/docker.sock
...
centos:~ # systemctl restart docker.service
centos:~ # docker pull swarm
update setting
Swarm - config
• # run once to get swarm token_id
centos:~ # docker run --rm swarm create
c4602d1cf638ac9805a0693499f04404
• # setup swarm node
node:~ # docker run -d swarm join --
advertise=172.17.33.83:2375
token://c4602d1cf638ac9805a0693499f04404
• # setup swarm manager
manager:~ # docker run -d -p 2375:2375 swarm manage
token://c4602d1cf638ac9805a0693499f04404
• # list swarm cluster
manager/node:~ # docker run --rm swarm list
token://c4602d1cf638ac9805a0693499f04404
swarm node IP
token id
Swarm - usage
• # usage 1
manager:~ # docker -H 172.17.33.86:2375 info
manager:~ # docker -H 172.17.33.86:2375 run hello-world
manager:~ # docker -H 172.17.33.86:2375 ps -a
• # usage 2
manager:~ # export DOCKER_HOST=172.17.33.86:2375
manager:~ # docker info
manager:~ # docker run hello-world
manager:~ # unset DOCKER_HOST
swarm manager IP
swarm manager IP
Key/Value Server for Docker
• Apache ZooKeeper
• Consul
• etcd
What is Consul
• Consul has multiple components, but as a
whole, it is a tool for discovering and
configuring services in your infrastructure.
It provides several key features:
– Service Discovery
– Key/Value Store
– Multi Datacenter
– Health Checking
Docker container network
• Default Networks
– bridge
– none
– host
• User-Defined Networks
– bridge
– overlay
Default Networks
Container
eth0
Host
eth0
docker0
vethxx
Container
eth0
Container
eth0
bridge network none network host network
User-Defined Networks
Container
eth0
Host
docker_gwbridge
vethxx
eth1
eth0
Container
eth1
Host
docker_gwbridge
vethxx
eth0
eth0
overlay network
Swarm cluster + Consul + overlay network
Docker
Host
172.17.33.83
Docker
Host
172.17.33.84
Docker
Host
swarmswarmswarm
Docker
Host
swarm
172.17.33.86
swarm cluster
swarm manager
swarm node
consul
Consul
• # consul install
consul:~ # docker pull progrium/consul
consul:~ # docker run -d -p 8500:8500 progrium/consul -server -
bootstrap
• # consul test
consul:~ # curl -L http://172.17.33.86:8500/v1/catalog/nodes
consul IP
Docker - Setting
• # docker install (Commercially Support, CS)
centos:~ # rpm --import https://sks-
keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d5
6f59a178ac6c6238f52e
centos:~ # yum install yum-utils
centos:~ # yum-config-manager --add-repo
https://packages.docker.com/1.10/yum/repo/main/centos/7
centos:~ # yum install docker-engine
centos:~ # systemctl enable docker.service
centos:~ # systemctl start docker.service
centos:~ # docker version # check version >= 1.9
• # docker config
centos:~ # vi /etc/systemd/system/multi-
user.target.wants/docker.serivce
...
ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H
unix:///var/run/docker.sock
--cluster-store=consul://172.17.33.86:8500 --cluster-
advertise=172.17.33.83:2375
...
centos:~ # systemctl restart docker.service
centos:~ # docker pull swarm
consul IP
swarm node IP
Swarm
• # setup swarm node
node:~ # docker run -d swarm join --advertise=172.17.33.83:2375
consul://172.17.33.86:8500/dc1
• # setup swarm manager
manager:~ # docker run -d -p 2376:2375 swarm manage
consul://172.17.33.86:8500/dc1
• # list swarm cluster
manager:~ # docker run --rm swarm list
consul://172.17.33.86:8500/dc1
swarm node IPconsul IP
overlay network
• manager:~ # docker network create -d overlay onetwork
manager:~ # docker network ls
• manager:~ # docker run -itd --name=abc --
env="constraint:node==d1" --net=onetwork ubuntu /bin/bash
manager:~ # docker run -itd --name=xyz --
env="constraint:node==d2" --net=onetwork ubuntu /bin/bash
manager:~ # docker ps
--subnet=10.0.9.0/24
--ip-range=10.0.9.0/24
overlay network
• manager:~ # docker network inspect onetwork
manager:~ # docker exec -it abc ping -c3 10.0.0.3
Reference
• Manually Install the CS Docker Engine
• Understand Docker container networks
• 深入瞭解 Docker Container Networks
• 用Docker Swarm打造多主機叢集環境
• Docker cluster with swarm, consul,
registrator and consul-template

More Related Content

What's hot (20)

PDF
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Giovanni Toraldo
 
PDF
Docker swarm
Alberto Guimarães Viana
 
PDF
Docker Online Meetup #28: Production-Ready Docker Swarm
Docker, Inc.
 
PPTX
Docker Swarm for Beginner
Shahzad Masud
 
PDF
Dockercon Swarm Updated
Docker, Inc.
 
PDF
Docker 1.12 and swarm mode
Wesley Charles Blake
 
PDF
Swarm mode
Dharmit Shah
 
PDF
Going Production with Docker and Swarm
C4Media
 
PPTX
Load Balancing Apps in Docker Swarm with NGINX
NGINX, Inc.
 
PDF
Deep Dive into Docker Swarm Mode
Ajeet Singh Raina
 
PDF
Consul and docker swarm cluster
Eueung Mulyana
 
PDF
Docker 1.11 @ Docker SF Meetup
Docker, Inc.
 
PDF
Nebulaworks Docker Overview 09-22-2015
Chris Ciborowski
 
PDF
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Mike Goelzer
 
PDF
Docker Swarm & Machine
Eueung Mulyana
 
PPTX
Docker Networking in OpenStack: What you need to know now
PLUMgrid
 
PDF
AtlasCamp 2015: The age of orchestration: From Docker basics to cluster manag...
Atlassian
 
PDF
Octo talk : docker multi-host networking
Hervé Leclerc
 
PPTX
CoreOS Overview and Current Status
Sreenivas Makam
 
PDF
swarmmode-dojo
Clarence Bakirtzidis
 
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Giovanni Toraldo
 
Docker Online Meetup #28: Production-Ready Docker Swarm
Docker, Inc.
 
Docker Swarm for Beginner
Shahzad Masud
 
Dockercon Swarm Updated
Docker, Inc.
 
Docker 1.12 and swarm mode
Wesley Charles Blake
 
Swarm mode
Dharmit Shah
 
Going Production with Docker and Swarm
C4Media
 
Load Balancing Apps in Docker Swarm with NGINX
NGINX, Inc.
 
Deep Dive into Docker Swarm Mode
Ajeet Singh Raina
 
Consul and docker swarm cluster
Eueung Mulyana
 
Docker 1.11 @ Docker SF Meetup
Docker, Inc.
 
Nebulaworks Docker Overview 09-22-2015
Chris Ciborowski
 
Docker Swarm 45-min Workshop (Mountain View Docker Meetup 2/24/2016)
Mike Goelzer
 
Docker Swarm & Machine
Eueung Mulyana
 
Docker Networking in OpenStack: What you need to know now
PLUMgrid
 
AtlasCamp 2015: The age of orchestration: From Docker basics to cluster manag...
Atlassian
 
Octo talk : docker multi-host networking
Hervé Leclerc
 
CoreOS Overview and Current Status
Sreenivas Makam
 
swarmmode-dojo
Clarence Bakirtzidis
 

Viewers also liked (17)

PDF
Docker Swarm: Docker Native Clustering
Docker, Inc.
 
PPTX
Docker networking basics & coupling with Software Defined Networks
Adrien Blind
 
PPTX
Docker networking Tutorial 101
LorisPack Project
 
PPTX
Docker Networking: Control plane and Data plane
Docker, Inc.
 
DOCX
Docker For Azure Deployment Walkthrough
Timothy Wong
 
PDF
DockerCon EU 2015: Docker Networking Deep Dive
Docker, Inc.
 
PDF
Docker Networking Deep Dive
Docker, Inc.
 
PDF
Kubernetes Networking
CJ Cullen
 
PPTX
Docker for azure tri aug - feb 2017
Timothy Wong
 
PPTX
Docker Swarm Overview
David Strebel
 
PPTX
Dianabol Canada
Anand Mohan
 
PDF
DockerDay2015: Docker Networking
Docker-Hanoi
 
PDF
An Introduction to Rancher
Conner Swann
 
PDF
Devops
Fernando Ike
 
PDF
Docker architecture (version modified)
Amir Arsalan
 
PDF
Docker avec Rancher, du dev à la prod - Makazi au devopsdday 2016
Alexis Ducastel
 
PPTX
Docker cluster with swarm, consul, registrator and consul-template
Julien Maitrehenry
 
Docker Swarm: Docker Native Clustering
Docker, Inc.
 
Docker networking basics & coupling with Software Defined Networks
Adrien Blind
 
Docker networking Tutorial 101
LorisPack Project
 
Docker Networking: Control plane and Data plane
Docker, Inc.
 
Docker For Azure Deployment Walkthrough
Timothy Wong
 
DockerCon EU 2015: Docker Networking Deep Dive
Docker, Inc.
 
Docker Networking Deep Dive
Docker, Inc.
 
Kubernetes Networking
CJ Cullen
 
Docker for azure tri aug - feb 2017
Timothy Wong
 
Docker Swarm Overview
David Strebel
 
Dianabol Canada
Anand Mohan
 
DockerDay2015: Docker Networking
Docker-Hanoi
 
An Introduction to Rancher
Conner Swann
 
Devops
Fernando Ike
 
Docker architecture (version modified)
Amir Arsalan
 
Docker avec Rancher, du dev à la prod - Makazi au devopsdday 2016
Alexis Ducastel
 
Docker cluster with swarm, consul, registrator and consul-template
Julien Maitrehenry
 
Ad

Similar to Introction to docker swarm (20)

PPTX
Deploying Windows Containers on Windows Server 2016
Ben Hall
 
PPTX
Real World Experience of Running Docker in Development and Production
Ben Hall
 
PPTX
Docker workshop
Evans Ye
 
PDF
Introduction to Docker & CoreOS - Symfony User Group Cologne
D
 
PPTX
Docker advance topic
Kalkey
 
PDF
Drone CI/CD 自動化測試及部署
Bo-Yi Wu
 
PPTX
Docker advance1
Gourav Varma
 
PPTX
moscmy2016: Extending Docker
Mohammad Fairus Khalid
 
PPTX
Running Docker in Development & Production (#ndcoslo 2015)
Ben Hall
 
PDF
Docker 進階實務班
Philip Zheng
 
PDF
How to create your own hack environment
Sumedt Jitpukdebodin
 
PDF
廣宣學堂: 容器進階實務 - Docker進深研究班
Paul Chao
 
PDF
Create and use a Dockerized Aruba Cloud server - CloudConf 2017
Aruba S.p.A.
 
PDF
Docker, the Future of DevOps
andersjanmyr
 
PDF
Dockertaipei 20150528-dockerswarm
Wei-Ting Kuo
 
PDF
Docker HK Meetup - 201707
Clarence Ho
 
PPTX
[Codelab 2017] Docker 기초 및 활용 방안
양재동 코드랩
 
PPTX
Docker 1.11 Presentation
Sreenivas Makam
 
PPTX
How to _docker
Abdur Rab Marjan
 
Deploying Windows Containers on Windows Server 2016
Ben Hall
 
Real World Experience of Running Docker in Development and Production
Ben Hall
 
Docker workshop
Evans Ye
 
Introduction to Docker & CoreOS - Symfony User Group Cologne
D
 
Docker advance topic
Kalkey
 
Drone CI/CD 自動化測試及部署
Bo-Yi Wu
 
Docker advance1
Gourav Varma
 
moscmy2016: Extending Docker
Mohammad Fairus Khalid
 
Running Docker in Development & Production (#ndcoslo 2015)
Ben Hall
 
Docker 進階實務班
Philip Zheng
 
How to create your own hack environment
Sumedt Jitpukdebodin
 
廣宣學堂: 容器進階實務 - Docker進深研究班
Paul Chao
 
Create and use a Dockerized Aruba Cloud server - CloudConf 2017
Aruba S.p.A.
 
Docker, the Future of DevOps
andersjanmyr
 
Dockertaipei 20150528-dockerswarm
Wei-Ting Kuo
 
Docker HK Meetup - 201707
Clarence Ho
 
[Codelab 2017] Docker 기초 및 활용 방안
양재동 코드랩
 
Docker 1.11 Presentation
Sreenivas Makam
 
How to _docker
Abdur Rab Marjan
 
Ad

Recently uploaded (20)

PPTX
FUGAROLI slide_EventoRoboticaUNI_UCIMU_SIRI_4luglio2025 1 (1) 1.pptx
postaSimo
 
PDF
Exploring Cemeteries and Mausoleums Near Toms River NJ.pdf
mr scaffolding
 
PDF
Top digital marketing agency - What is website?
salonisrivastavasubm
 
PDF
How to Integrate eCommerce Features into Your Website.pdf
Zinavo Pvt Ltd
 
PDF
Digital Marketing in Shimla | Gashwa Technologies PVT. LTD.
Gashwa Technologies
 
PDF
Corporate Bookkeeping Services: Ensure Accurate Financial Management for Your...
huseinccntnts
 
PDF
Why Social Media Marketing is important now a days
khursheedmarketer
 
PDF
How a Gamified Learning Management System Helps Small Teams Upskill Affordably
Lukas Jeremy
 
PDF
CSR-Corporate-Support-Through-Social-Gratitude.pdf
ambarguptaaconsultan
 
PDF
AI Consulting for Business Automation Efficiency | Rubixe
Rubixe AI-Company
 
PPTX
Insuranceisland – Trusted Coverage Across the US
Insuranceisland - California
 
PDF
Introduction to Search Engine Optimization
shakshamsahu0806
 
DOCX
The Benefits of Rainwater Harvesting for Irrigation
Irri Design Studio
 
PDF
How to Prepare Your Data for AI and ML Success
statswork100
 
PDF
DSV Market update AS July 16th 2024 updated
rojasjannette
 
PDF
Social Media Marketing service Presentation
mahimach442
 
PPT
Service management the nature of services
LalitTukaramIngale
 
PPTX
THEJMBE: Where Culture Meets Consumer Insight
THEJEMBE
 
PPTX
SSL Certificates in 2025 A Deeper Dive into EV SSL Certificate Online Purchase
SSLCertShop
 
PPTX
Shopify product integration with yfifx.com
YFIFX
 
FUGAROLI slide_EventoRoboticaUNI_UCIMU_SIRI_4luglio2025 1 (1) 1.pptx
postaSimo
 
Exploring Cemeteries and Mausoleums Near Toms River NJ.pdf
mr scaffolding
 
Top digital marketing agency - What is website?
salonisrivastavasubm
 
How to Integrate eCommerce Features into Your Website.pdf
Zinavo Pvt Ltd
 
Digital Marketing in Shimla | Gashwa Technologies PVT. LTD.
Gashwa Technologies
 
Corporate Bookkeeping Services: Ensure Accurate Financial Management for Your...
huseinccntnts
 
Why Social Media Marketing is important now a days
khursheedmarketer
 
How a Gamified Learning Management System Helps Small Teams Upskill Affordably
Lukas Jeremy
 
CSR-Corporate-Support-Through-Social-Gratitude.pdf
ambarguptaaconsultan
 
AI Consulting for Business Automation Efficiency | Rubixe
Rubixe AI-Company
 
Insuranceisland – Trusted Coverage Across the US
Insuranceisland - California
 
Introduction to Search Engine Optimization
shakshamsahu0806
 
The Benefits of Rainwater Harvesting for Irrigation
Irri Design Studio
 
How to Prepare Your Data for AI and ML Success
statswork100
 
DSV Market update AS July 16th 2024 updated
rojasjannette
 
Social Media Marketing service Presentation
mahimach442
 
Service management the nature of services
LalitTukaramIngale
 
THEJMBE: Where Culture Meets Consumer Insight
THEJEMBE
 
SSL Certificates in 2025 A Deeper Dive into EV SSL Certificate Online Purchase
SSLCertShop
 
Shopify product integration with yfifx.com
YFIFX
 

Introction to docker swarm

  • 1. Introduction to Docker Swarm Hsi-Kai Wang
  • 2. Outline • Docker Cluster • Swarm • Swarm + Consul + overlay network
  • 3. What is PC Cluster • A computer cluster consists of a set of loosely or tightly connected computers that work together so that, in many respects, they can be viewed as a single system. Unlike grid computers, computer clusters have each node set to perform the same task, controlled and scheduled by software. Ref: Computer cluster wiki
  • 4. Docker Cluster Software • Apchae Mesos – abstract resource • docker swarm – easy way to cluster – standard Docker API • kubernetes – container merge – sample scaling
  • 5. What is Swarm • Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual Docker host. Because Docker Swarm serves the standard Docker API, any tool that already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts.
  • 6. Software Environment • OS – CentOS: 7 (7.1.1503) • Software – Docker 1.10 (1.10.3.cs2) – Docker container network (Docker >= 1.9) – Swarm (Docker >= 1.5, 2375 port) – Consul
  • 8. Docker - Setting• # docker install (Commercially Support, CS) centos:~ # rpm --import https://sks- keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d5 6f59a178ac6c6238f52e centos:~ # yum install yum-utils centos:~ # yum-config-manager --add-repo https://packages.docker.com/1.10/yum/repo/main/centos/7 centos:~ # yum install docker-engine centos:~ # systemctl enable docker.service centos:~ # systemctl start docker.service centos:~ # docker version # check version >= 1.5 • # docker config centos:~ # vi /etc/systemd/system/multi- user.target.wants/docker.serivce ... ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock ... centos:~ # systemctl restart docker.service centos:~ # docker pull swarm update setting
  • 9. Swarm - config • # run once to get swarm token_id centos:~ # docker run --rm swarm create c4602d1cf638ac9805a0693499f04404 • # setup swarm node node:~ # docker run -d swarm join -- advertise=172.17.33.83:2375 token://c4602d1cf638ac9805a0693499f04404 • # setup swarm manager manager:~ # docker run -d -p 2375:2375 swarm manage token://c4602d1cf638ac9805a0693499f04404 • # list swarm cluster manager/node:~ # docker run --rm swarm list token://c4602d1cf638ac9805a0693499f04404 swarm node IP token id
  • 10. Swarm - usage • # usage 1 manager:~ # docker -H 172.17.33.86:2375 info manager:~ # docker -H 172.17.33.86:2375 run hello-world manager:~ # docker -H 172.17.33.86:2375 ps -a • # usage 2 manager:~ # export DOCKER_HOST=172.17.33.86:2375 manager:~ # docker info manager:~ # docker run hello-world manager:~ # unset DOCKER_HOST swarm manager IP swarm manager IP
  • 11. Key/Value Server for Docker • Apache ZooKeeper • Consul • etcd
  • 12. What is Consul • Consul has multiple components, but as a whole, it is a tool for discovering and configuring services in your infrastructure. It provides several key features: – Service Discovery – Key/Value Store – Multi Datacenter – Health Checking
  • 13. Docker container network • Default Networks – bridge – none – host • User-Defined Networks – bridge – overlay
  • 16. Swarm cluster + Consul + overlay network Docker Host 172.17.33.83 Docker Host 172.17.33.84 Docker Host swarmswarmswarm Docker Host swarm 172.17.33.86 swarm cluster swarm manager swarm node consul
  • 17. Consul • # consul install consul:~ # docker pull progrium/consul consul:~ # docker run -d -p 8500:8500 progrium/consul -server - bootstrap • # consul test consul:~ # curl -L http://172.17.33.86:8500/v1/catalog/nodes consul IP
  • 18. Docker - Setting • # docker install (Commercially Support, CS) centos:~ # rpm --import https://sks- keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d5 6f59a178ac6c6238f52e centos:~ # yum install yum-utils centos:~ # yum-config-manager --add-repo https://packages.docker.com/1.10/yum/repo/main/centos/7 centos:~ # yum install docker-engine centos:~ # systemctl enable docker.service centos:~ # systemctl start docker.service centos:~ # docker version # check version >= 1.9 • # docker config centos:~ # vi /etc/systemd/system/multi- user.target.wants/docker.serivce ... ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --cluster-store=consul://172.17.33.86:8500 --cluster- advertise=172.17.33.83:2375 ... centos:~ # systemctl restart docker.service centos:~ # docker pull swarm consul IP swarm node IP
  • 19. Swarm • # setup swarm node node:~ # docker run -d swarm join --advertise=172.17.33.83:2375 consul://172.17.33.86:8500/dc1 • # setup swarm manager manager:~ # docker run -d -p 2376:2375 swarm manage consul://172.17.33.86:8500/dc1 • # list swarm cluster manager:~ # docker run --rm swarm list consul://172.17.33.86:8500/dc1 swarm node IPconsul IP
  • 20. overlay network • manager:~ # docker network create -d overlay onetwork manager:~ # docker network ls • manager:~ # docker run -itd --name=abc -- env="constraint:node==d1" --net=onetwork ubuntu /bin/bash manager:~ # docker run -itd --name=xyz -- env="constraint:node==d2" --net=onetwork ubuntu /bin/bash manager:~ # docker ps --subnet=10.0.9.0/24 --ip-range=10.0.9.0/24
  • 21. overlay network • manager:~ # docker network inspect onetwork manager:~ # docker exec -it abc ping -c3 10.0.0.3
  • 22. Reference • Manually Install the CS Docker Engine • Understand Docker container networks • 深入瞭解 Docker Container Networks • 用Docker Swarm打造多主機叢集環境 • Docker cluster with swarm, consul, registrator and consul-template