Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Docker Swarm Introduction
Search
Victor Vieux
December 05, 2014
Technology
3
1.6k
Docker Swarm Introduction
Docker Swarm breakout session at DockerCon EU.
Victor Vieux
December 05, 2014
Tweet
Share
More Decks by Victor Vieux
See All by Victor Vieux
What's new in Docker ?
vieux
0
130
Docker Swarm - Online Meetup [#SwarmWeek Edition]
vieux
2
1.8k
What's new in Swarm 1.1
vieux
7
1.2k
Docker Swarm on Mesos
vieux
5
590
Orchestration for Sysadmins
vieux
1
110
Docker Swarm
vieux
2
870
Docker machine, swarm and compose: the future of distributed apps
vieux
1
290
Run Any App on Mesos on Any Infrastructure Using Docker
vieux
4
1.6k
What's new in the latest Docker release and Docker Hub @ braintree
vieux
10
1.5k
Other Decks in Technology
See All in Technology
AI時代、“平均値”ではいられない
uhyo
8
2.6k
[読書]AWSゲームブック〜GuardDuty魔神とインシデント対応の旅〜DevIO2025
cmusudakeisuke
0
180
マルチエージェントのチームビルディング_2025-10-25
shinoyamada
0
190
JSConf JPのwebsiteをGatsbyからNext.jsに移行した話 - Next.jsの多言語静的サイトと課題
leko
2
190
「タコピーの原罪」から学ぶ間違った”支援” / the bad support of Takopii
piyonakajima
0
150
Okta Identity Governanceで実現する最小権限の原則 / Implementing the Principle of Least Privilege with Okta Identity Governance
tatsumin39
0
180
20251027_マルチエージェントとは
almondo_event
1
450
可観測性は開発環境から、開発環境にもオブザーバビリティ導入のススメ
layerx
PRO
3
1.1k
Observability — Extending Into Incident Response
nari_ex
1
500
AIでデータ活用を加速させる取り組み / Leveraging AI to accelerate data utilization
okiyuki99
1
740
混合雲環境整合異質工作流程工具運行關鍵業務 Job 的經驗分享
yaosiang
0
190
serverless team topology
_kensh
3
230
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.2k
The Pragmatic Product Professional
lauravandoore
36
7k
How GitHub (no longer) Works
holman
315
140k
Embracing the Ebb and Flow
colly
88
4.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Build The Right Thing And Hit Your Dates
maggiecrowley
38
2.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
34
2.3k
The Invisible Side of Design
smashingmag
302
51k
Building an army of robots
kneath
305
46k
BBQ
matthewcrist
89
9.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
Transcript
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! • Create a cluster:! $ swarm create • Add
nodes to a cluster:! $ swarm join --token=<token> --addr=<node_ip> • List nodes in a cluster! $ swarm list --token=<token> • Start Swarm! $ swarm manage --token=<token> --addr=<swarm_ip> ! !
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.!