Download - Intro to Docker Swarm
1
Intro to Docker Swarm
@ e v e r e t t _ t o e w sD e v e l o p e r A d v o c a t e @ R a c k s p a c e
2
Docker Swarm
2
• C l u s t e r i n g f o r m u l t i p l e D o c ke r n o d e s
3
Container Orchestrat ion Engines
3
44
5
Benefits
5
• L e s s c o m p l e x i t y•D o c ke r A P I• E c o s y s t e m• S c h e d u l i n g• S t r a t e g i e s•C o n s t r a i n t s• Fi l t e r s• Re s c h e d u l i n g•D N S
6
Docker Swarm
6
• C l u s t e r i s t h e n e w n o r m a l• C l u s t e r a w a r e
7
EffectiveDocker Swarm
8
Images
8
• d o c k e r b u i l d• B u i l d a c u s t o m i m a g e• Ru n a c o n t a i n e r t a k i n g u p a l i m i t e d r e s o u r c e• Tw i c e
9
Images
9
• C o n s t r a i n t• A ffi n i t y• P u b l i c r e g i s t r y• P r i v a t e r e g i s t r y
10
Volumes
10
• d o c k e r v o l u m e• C r e a t e a v o l u m e•Wr i t e s o m e d a t a• Re a d i t b a c k
11
Volumes
11
•D i s t r i b u t e d fi l e s y s t e m• S t o r e d a t a o ff -c l u s t e r•D a t a v o l u m e c o n t a i n e r s• B a c k u p a n d r e s t o r e !
12
Networks
12
• Ru n a c o n t a i n e r w i t h p u b l i s h e d p o r t ( s )• Re f e r t o a n o t h e r c o n t a i n e r b y n a m e
13
Networks
13
• d o c k e r n e t w o r k•O v e r l a y n e t w o r k s•D N S
14
Security
14
• I A N A S E• S w a r m• T L S•O v e r l a y n e t w o r k s• C o n t a i n e r•Wa t c h t o w e r•D o c ke r B e n c h
15
Security
15
•D a e m o n• A u t h Z p l u g i n•U p d a t e s•N o d e• s e c c o m p• A p p A r m o r
16
Service Discovery
16
• S e r v i c e r e g i s t r a t i o n• S e r v i c e d i s c o v e r y• L o a d b a l a n c i n g
17
Service Discovery
17
•D N S• I n t e r l o c k• e t c d + r e g i s t r a t o r + c o n f d + h a p r o x y / n g i n x• c o n s u l + r e g i s t r a t o r + c o n s u l t e m p l a t e + h a p r o x y / n g i n x
18
Where to Swarm?
18
• d o c k e r - m a c h i n e•M i c r o s o f t A z u r e•D o c ke r U C P•D o c ke r D a t a c e n t e r• C a r i n a b y R a c k s p a c e• g e t c a r i n a . c o m
19
Effect ive Docker Swarm• 11 :05am|Wednesday |Room 16BOffice Hours• 1 :05am|Wednesday |O ’Re i l l y
Boo thThink outs ide the container• 2 :40am|Wednesday |Room 16BRackspace Booth• Wednesday & Thursday |Expo Ha l l
20
Thank You!@ e v e r e t t _ t o e w s
D e v e l o p e r A d v o c a t e @ R a c k s p a c e