Docker : devops, shared registries, HPC and emerging use cases
François Moreews & Olivier Sallou
Docker : devops, shared registries, HPC and emerging use cases - - PowerPoint PPT Presentation
Docker : devops, shared registries, HPC and emerging use cases Franois Moreews & Olivier Sallou P r e s e n t a t i o n Docker is an open-source engine to easily create lightweight, portable , self-sufficient containers from
François Moreews & Olivier Sallou
“Docker is an open-source engine to easily create lightweight, portable, self-sufficient containers from any
a developer builds and test on a laptop can run at scale, in production,
clouds and more.”
chroot
directory of a process/command. Chroot changes the root directory of a command, which ends up changing the root directory for both current running process and its children.
files outside the root directory. This modified environment is known as "jailed directory" .
What are Docker “containers” ? Technically: ~chroot on steroids
containers)
mountpoints...)
effect)
What are Docker “containers” ? From a distance: looks like a VM
...
What are Docker “containers” ?
An efficient new way to build, ship, deploy & run your apps ! Lightweight, fast, disposable...virtual environments :
h e D e v e l
e r w
r i e s a b
t w h a t ’ s “ i n s i d e ” t h e c
t a i n e r
i s c
e
i s L i b r a r i e s
i s P a c k a g e M a n a g e r
i s A p p s
i s D a t a
l l L i n u x s e r v e r s l
t h e s a me
h e O p s ( a d mi n ) w
r i e s a b
t w h a t ’ s “
t s i d e ” t h e c
t a i n e r
g i n g
e mo t e a c c e s s
i t
i n g
e t w
k c
f i g
l l c
t a i n e r s s t a r t , s t
, c
y , a t t a c h , mi g r a t e , e t c . t h e s a me w a y
Build : Dependencies & Dockerfjle
more api/Dockerfile FROM giltarchitecture/ ubuntu-openjdk-7-jre-headless:12.0.4 ADD . /apidoc ENTRYPOINT ["/apidoc/bin/apidoc-api"]
Run Docker docker -run
mydockercontainer-1-2-3 –Denv.port=90
deamon mode (-d) or interactif mode (-i)
DOCKER : Share
A Container based cloud architecture
DOCKER : CLOUD & HPC
l p h a
h e G
l e C
t a i n e r E n g i n e i s i n s p i r e d b y G
l e ’ s e x p e r i e n c e w i t h b u i l d i n g a n d r u n n i n g c
t a i n e r
a s e d d i s t r i b u t e d s y s t e ms , C
t a i n e r E n g i n e r e
ma g i n e s s
G
l e ’ s mo s t p
e r f u l i n t e r n a l s y s t e ms , s
h a t y
c a n d e v e l
a n d ma n a g e c
t a i n e r s t h e w a y G
l e ’ s e n g i n e e r s d
t h c
t a i n e r
a s e d c
u t i n g , a p p l i c a t i
d e v e l
e r s c a n f
u s
t h e i r a p p l i c a t i
c
e , i n s t e a d
d e p l
me n t s a n d i n t e g r a t i
i n t
t i n g e n v i r
me n t s . A t t h e s a me t i me , a p p l i c a t i
s c a n b e b u i l t w i t h f e w c
s t r a i n t s . O p e r a t i
s c a n p r
i d e a r
u s t p l a t f
m t h a t q u i c k l y p r
i s i
s c
u t e r e s
r c e s a n d e a s i l y ma n a g e s a p p l i c a t i
s . T h e t
s n e e d t
u p p
t t h e r i g h t c
t r
s f
s u c h a p p l i c a t i
a n d r e s
r c e ma n a g e me n t .
h e f
u s w i t h C
t a i n e r E n g i n e i s
b u i l d i n g t h e s e t
s a n d c
t r
s f
e r a t i
s . A t t h e s a me t i me , g
l e w a n t t
l l
f
w
k l
d mo b i l i t y , w h e r e c
t a i n e r i z e d a p p l i c a t i
s c a n r u n mu l t i
l
d . T h e y h a v e , t h e r e f
e , d e s i g n e d C
t a i n e r E n g i n e t
u p p
t K u b e r n e t e s , t h e
e n s
r c e t e c h n
y , s
h a t c u s t
r s c a n r u n
mu l t i p l e c l
d s .
A Container based cloud architecture
DOCKER : CLOUD & HPC
u b e r n e t e s i s a n
e n s
r c e c
t a i n e r c l u s t e r ma n a g e r . I t s c h e d u l e s a n y n u mb e r
c
t a i n e r r e p l i c a s a c r
s a g r
p
n
e i n s t a n c e s . A ma s t e r i n s t a n c e e x p
e s t h e K u b e r n e t e s A P I , t h r
g h w h i c h t a s k s a r e d e f i n e d . K u b e r n e t e s s p a w n s c
t a i n e r s
n
e s t
a n d l e t h e d e f i n e d t a s k s .
h e n u mb e r a n d t y p e
c
t a i n e r s c a n b e d y n a mi c a l l y mo d i f i e d a c c
d i n g t
e e d . A n a g e n t ( a k u b e l e t )
e a c h n
e i n s t a n c e mo n i t
s c
t a i n e r s a n d r e s t a r t s t h e m i f n e c e s s a r y .
u b e r n e t e s i s
t i mi z e d f
G
l e C l
d P l a t f
m, b u t c a n r u n
a n y p h y s i c a l
v i r t u a l ma c h i n e .
Batch Scheduler with Docker
DOCKER : CLOUD & HPC
If user request root access:
If user does not request root access: