You are on page 1of 11

云之彼端

Docker In Clouds
Agenda
● Isolate -> Namespaces
● Control Groups -> cgroups
● LXC -> Linux Container
● Why named Docker
● Docker is the next generation PaaS
Isolate
Namespaces
pid
● pid namespace user
● net namespace net
● mnt namespace
uts
● ipc namespace
ipc
● uts namespace mnt
Resource Control
Control Groups - cgroups
● Memory
● CPU Share
● CPU Set
● Block I/O

CPU: 0,1 CPU: 2, 3, 4 CPU: 5, 6, 7


memory: 1G memory: 3G memory: 512M
LXC - Linux Container

Provide powerful api and simple tools to


manage resource through the namespaces
and control groups aka cgroups.
Why named Docker?

Containers

Docker
Build A Golang Docker
Docker is the next generation PaaS
Thanks

Meaglith Ma <genedna@gmail.com>
Twitter: @genedna
Weibo: @马全一

You might also like