LXC Docker
LXC Docker
LXC Docker
What is LXC ?
Containers
Uses cases
Testing environment
Application isolation
Weaknesses
No Windows support
Demo
10
11
12
13
14
15
16
17
CONFIGURE A CONTAINER
# vi lxc_example.xml
<domain type='lxc'>
<name>lxc_example</name>
<memory>500000</memory>
<os>
<type>exe</type>
<init>/bin/sh</init>
</os>
<vcpu>1</vcpu>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/libexec/libvirt_lxc</emulator>
<interface type='network'>
<source network='default'/>
</interface>
<console type='pty' />
</devices>
</domain>
18
19
20
NEXT STEP
21
DOCKER
Container-based tooling
Automatic build
22