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
1.7k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Docker Swarm Introduction
Docker Swarm breakout session at DockerCon EU.
Victor Vieux
December 05, 2014
More Decks by Victor Vieux
See All by Victor Vieux
What's new in Docker ?
vieux
0
170
Docker Swarm - Online Meetup [#SwarmWeek Edition]
vieux
2
1.8k
What's new in Swarm 1.1
vieux
7
1.3k
Docker Swarm on Mesos
vieux
5
630
Orchestration for Sysadmins
vieux
1
150
Docker Swarm
vieux
2
910
Docker machine, swarm and compose: the future of distributed apps
vieux
1
320
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エージェントを前提としたプラットフォーム エンジニアリング:GKEで作るAgent-Ready Golden Path
legalontechnologies
PRO
2
220
AWS ネットワーク構築でハマった(ハマりかけた) 5選とそこから得た教訓
nagisa53
4
200
AIは実装を速くする。では、私たちは何を今作るべきか?-立場を越えてリリースに向き合ったチーム開発の実践 / 20260801 Hiromi Nakaya and Naoki Takahashi
shift_evolve
PRO
3
450
ガバメントクラウドでのランサムウェア対策
techniczna
2
1k
AI時代の強いチームの作り方
yuukiyo
26
16k
個人OSSが、机の上から世界に広がるまでの話
shinyasaita
1
370
メルカリのグローバルアプリで挑んだ AlloyDB 運用と課題解決の実践記
hatappi
0
240
え?フロントエンドエンジニアの ワイがインフラも!?
puku0x
1
440
Master Dataグループ紹介資料
sansan33
PRO
1
4.8k
システム思考で問題に対処する
yussak
0
210
モバイルアプリ開発概論2026
recruitengineers
PRO
4
510
GitHub CopilotのFinOps- AI CreditのObservabilityと価値を生むためのエージェント設計
yuriemori
0
140
Featured
See All Featured
BBQ
matthewcrist
89
10k
The Language of Interfaces
destraynor
162
27k
HDC tutorial
michielstock
2
790
Test your architecture with Archunit
thirion
1
2.3k
Code Review Best Practice
trishagee
74
20k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.5k
The Cost Of JavaScript in 2023
addyosmani
55
10k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
41k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
460
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
540
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.!